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();
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