Saya mencoba merubah rute halaman login dari halaman dashboard ke halaman home-admin, tapi ketika login masih redirect ke halaman dashboard sedangkan pada file auth.php saya sudah mengubah untuk ke halaman home-admin berikut codinganya :
'redirect' => [
'after_login' => '/home-admin',
'after_register' => '/',
'after_reset_password' => '/auth/login',
'after_logout' => '/auth/login',
],
ini file web.php saya
Route::middleware('auth')->group(function () {
Route::get('dashboard', 'Admin\[email protected]')->name('dashboard');
Route::get('masterdata', '[email protected]')->name('master-data.index');
Route::get('masterdata/create', '[email protected]')->name('master-data.create');
Route::post('masterdata/store', '[email protected]')->name('master-data.store');
Route::get('masterdata/{id}/edit', '[email protected]')->name('master-data.edit');
Route::put('masterdata/{id}', '[email protected]')->name('master-data.update');
Route::resource('transaksi', 'Admin\\TransaksiController');
Route::get('notification/{id}', 'Admin\\[email protected]')->name('notification.show');
Route::resource('invoice', 'InvoiceController');
Route::get('invoice/print/{id}', '[email protected]')->name('invoice.print');
Route::get('my/profile/', 'User\[email protected]')->name('profile.edit');
Route::post('my/profile/', 'User\[email protected]')->name('profile.update');
Route::get('analytic', 'Admin\[email protected]')->name('analytic');
Route::get('home-admin', '[email protected]')->name('home-admin.index');
});