September 2017
Intermediate to advanced
244 pages
6h 44m
English
If you look in the installation directory where we installed Lumen, in our case it was blog, you will see a .env file. Lumen keeps configurations in the .env file. You can see there is an option APP_KEY= if this is not yet set in the .env file, set it. This just needs to be set to a random string that has a 32 character length.
And then, to run Lumen simply use the following command:
php -S localhost:8000 -t public
As you can see, we are using a PHP built-in server and giving the path of the public directory in our project. This is because the entry point is public/index.php. Then, on http://localhost:8000/ ...
Read now
Unlock full access