Laravel is a php MVC framework.
mainly it has 3 components,MVC stands for:
mainly it has 3 components,MVC stands for:
- Model
- View
- 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:
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:
- web.php: Defines routing for application.
- .env: Defines database configuration and smtp settings in it.
- composer.json: Defines require packages.
- App>Http>Controller: Contains all the controllers of Application.
- 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