1

Localhost Error

Getting this when redirected from the controller or middleware, just cloned this project from the live server to the local machine.

have also tried this php artisan serve but still facing the same issue

========Route=========

Route::post('/authenticate', [UserController::class, 'authenticate'])->name('authenticate');

========Controller=========

return redirect('dashboard')->with('success', 'Login successfull.');

The server PHP version was 8.1, mine is 8.2

1
  • Can you share more code with your middleware and controller? Commented Jun 4 at 8:42

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.