It seems straightforward as mentioned in the documentation here
but for some reason changing the value of the constant HOME
refuses to work. I changed
public const HOME = '/dashboard';
to
public const HOME = '/newhome';
but it still lands on /dashboard
after login. I have rechecked the declaration of the routes, cleared the routes cache using php artisan optimize
but it simply does not work.
I have worked the way around by using Route::get('/dashboard', function () { return view('newhome'); })->name('dashboard');
but don't like it as it feels janky.
Am I missing something here?