liebig's avatar

Always 404 - Sorry, the page you are looking for could not be found

I installed Lumen via composer create-project laravel/lumen --prefer-dist with the OpenSSL PHP Extension, Mbstring PHP Extension and Tokenizer PHP Extension installed but always receive a 404 Sorry, the page you are looking for could not be found response. I added routes to the default one but no route does work. I tested this with Windows 8 (with XAMPP) and Ubuntu.

0 likes
5 replies
MathewHany's avatar
Level 1

Edit your index.php file

$app->run();

to

$app->run($app['request']);
1 like
liebig's avatar

Great that worked for me. But why I have to do this? And why I can't find anything about this in the documentation? This is not a user friendly framework...

TheGlenn88's avatar

It seems to work fine for me using Ubuntu under Vagrant.

hanif-king's avatar

in my case in directory "public/ index.php" there is no such a line "$app->run();" i have the lastest laravel since 2017/6/16 what should i do? i get the same message while i am calling a route value ?

Please or to participate in this conversation.