Romentigo
4 months ago
534
7
Laravel

Session not persisting after login, only with remember.

Posted 4 months ago by Romentigo

I've found out that session is destroyed after I login, but it keeps alive if I check "Remember me". I'm using default Auth. My routes:

Route::group(['middleware' =>['web']], function ()
{
    Route::get('/', '[email protected]')->name('welcome');
    Route::get('/login', function () {
        return view('login');
    });

    Auth::routes();

    Route::group(['middleware' => ['web','auth']], function () {
        Route::get('/profile', [
            'uses' => 'Api\[email protected]',
            'as' => 'user'
        ]);
        Route::get('/instruments', [
            'uses' => 'Api\[email protected]',
            'as' => 'instruments'
        ]);
        Route::get('/logout', 'Auth\[email protected]');
    });
});

Please sign in or create an account to participate in this conversation.