skip to Main Content

Unable to access user id through guard after login in laravel

I have this route defined in web.php web.php Route::group(['prefix' => 'user'], function () { Route::get('login', [FrontendController::class ,'showLoginForm'])->name('user.login-show'); Route::post('login', 'AppHttpControllersLoginController@login')->name('login.post'); } this is my login controller <?php namespace AppHttpControllers; use Auth; use AppUser; use AppHttpControllersController; use IlluminateHttpRequest; use IlluminateFoundationAuthAuthenticatesUsers; use IlluminateSupportFacadesHash;…

VIEW QUESTION
Back To Top
Search