expectsJson()) { if (Route::is('admin.*')) { return route('admin.login'); } if (Route::is('user.*')) { return route('user.login'); } } } }