![]() Next uncomment this line //$app->withFacades(), which allows us to make use of Facades in our project. Make sure you set the right details for your database in the. Once uncommented, Lumen hooks the Eloquent ORM with your database using the connections configured in the. php and uncomment this line, // app->withEloquent. You should see the index page like so:Īuthors Index Activate Eloquent and FacadesĪs I mentioned earlier, the entire bootstrap process is located in a single file. Now, run php - S localhost : 8000 -t public to serve the project. Run the following command in your terminal to create a new project with Lumen: composer create-project -prefer-dist laravel/lumen authorsĬd into the newly created project.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |