I'm new to Laravel and try to run a program. In the source code, the route login.post
already declared in web.php. however i still getting error Route [login.post] not defined.
. Is there any missing configuration i missing? I already ran composer install
and composer update
. php artisan db:seed
and php artisan migrate
.
web,php
Route::get('login', [AuthController::class, 'index'])->name('login');
Route::post('post-login', [AuthController::class, 'postLogin'])->name('login.post');
Route::get('register', [AuthController::class, 'register'])->name('register');
Route::post('post-registration', [AuthController::class, 'postRegistration'])->name('register.post');
Route::get('logout', [AuthController::class, 'logout'])->name('logout');