Environment details:
- Windows 10
- PHP7
- Apache 2.4.
The actions I took
I installed Lumen into the htdocs folder using:
composer create-project --prefer-dist laravel/lumen blog
so now the file path to index.php is:
c:\Apache24\htdocs\blog\public\
This is the content of my routes.php:
$app->get('/', function () use ($app) {
return $app->version();
});
$app->get( 'foo', function() {
return "Hello World!";
} );
First I was not able to even access http://localhost/blog/public so I changed the line $app->run();
in public/index.php code to $app->run($app->make('request'));
The problem:
Now I am unable to access http://localhost/blog/public/foo (with a response of 404)
EDIT
Based on Alexei's suggestion, I changed the config file and now http://localhost points to the '/' route, but I am still unable to access the http://localhost/foo
Thx for help ;)