Commit for this lesson: https://github.com/LaravelDaily/Laravel-Vue3-CRUD-Course-2022/commit/266c7cc91bccb7fc91557bac68eff6aa91965a2e
Commit for this lesson: https://github.com/LaravelDaily/Laravel-Vue3-CRUD-Course-2022/commit/266c7cc91bccb7fc91557bac68eff6aa91965a2e
Please i have been trying to login to my dashboard and i am getting this error response "App\Http\Controllers\Auth\AuthenticatedSessionController::store(): Return value must be of type Illuminate\Http\RedirectResponse, Illuminate\Http\JsonResponse returned"
this is my AuthenticatedSessionController store method public function store(LoginRequest $request): RedirectResponse { $request->authenticate();
}
this is my web.php Route::post('login', [AuthenticatedSessionController::class, 'store']);
Yes i have found the answer, in laravel 9 AuthenticatedSessionController store method had RedirectResponse attached to it which i removed