close

[Solved] 404 NOT FOUND in Laravel 8

Hello Guys, How are you all? Hope You all Are Fine. Today I get the following error 404 NOT FOUND in Laravel 8 in php. So Here I am Explain to you all the possible solutions here.

Without wasting your time, Let’s start This Article to Solve This Error.

How 404 NOT FOUND in Laravel 8 Error Occurs?

Today I get the following error 404 NOT FOUND in Laravel 8 in php.

How To Solve 404 NOT FOUND in Laravel 8 Error ?

  1. How To Solve 404 NOT FOUND in Laravel 8 Error ?

    To Solve 404 NOT FOUND in Laravel 8 Error try to write a route like this
    Route::get('/aboutus', 'App\Http\Controllers\[email protected]');

  2. 404 NOT FOUND in Laravel 8

    To Solve 404 NOT FOUND in Laravel 8 Error try to write a route like this
    Route::get('/aboutus', 'App\Http\Controllers\[email protected]');

Solution 1

try to write a route like this

Route::get('/aboutus', 'App\Http\Controllers\[email protected]');

Solution 2

In laravel 8 you can try this way:

Route::get('/', [App\Http\Controllers\SmsController::class, 'index']);
Route::get('/about-us', [App\Http\Controllers\SmsController::class, 'aboutus']);
Route::get('/contact-us', [App\Http\Controllers\SmsController::class, 'contactus']);

Summery

It’s all About this issue. Hope all solution helped you a lot. Comment below Your thoughts and your queries. Also, Comment below which solution worked for you? Thank You.

Also, Read

Leave a Comment