Thursday, June 28, 2018

WorkFlow Of Laravel

 Laravel is a php MVC framework.
mainly it has 3 components,MVC stands for:
  1. Model
  2. View
  3. Controller
Before Using Laravel You need to install laravel From its Documentation https://laravel.com/docs/  download the latest version of laravel from there.

Then start laravel server:
Go to your Laravel Project Directory in cmd or terminal > type php artisan serve




As shown in above message you can start development by typing localhost:8000 in your browser.


The Request Life Cycle of Laravel is As below:

When we send any request From URL,the control goes in web.php file,find the route entry and load controller or view according to its route.

Main Files Of Laravel:


  1. web.php: Defines routing for application.
  2. .env: Defines database configuration and smtp settings in it.
  3. composer.json: Defines require packages.
  4. App>Http>Controller: Contains all the controllers of Application.
  5. App>model.php: Model files directly got stored in App directory.


  • Controllers contains Application Logic.
  • Models contains Business Logic.
  • Views contains simple HTML view.

No comments:

Post a Comment