Please post something to go by. Routes file would be a good start (and where it breaks)
Laravel Routes return 404 error
Hello,
I've been a while developing websites using Laravel, but it's the first time I encounter such a problem. I have many routes defined in routes/web.php and they're working normally. But when reaching some point (i.e some number of routes), new routes defined at the end below are not working. They're returning a 404 error (Not found), though they're defined, and they're shown when running "php artisan route:list".
When trying to find a solution, I found something related to the ".htaccess" file found in the public folder of the project, and something related to "AllowOverride all" instead of "AllowOverride none", but everything regarding the Apache server was set correctly, and the problem was still there.
And by the way: I'm using wampserver as a local server, and when I runned the project on the embedded server that comes with Laravel (php artisan serve) it also returned the same error.
So, can anyone help me with that? Please, I tried a lot looking for solution, but got nothing. Depending on you :)
This route will catch everything
Route::get('/{article_id}', 'ArticleController@show')->name('article.show');
/lalala would hit it as it catches everything. It's the same with all other routes after it also
This would be better
Route::get('article/{article_id}', 'ArticleController@show')->name('article.show');
Please or to participate in this conversation.