Laravel is a free, open-source PHP web framework, and web applications following the model-view-controller(MVC) architectural pattern and based on symphony. Some of the features of laravel are a modular packaging system with a dedicated dependency manager, different ways for accessing relational databases, utilities that aid in application deployment and maintenance, and its orientation toward syntactic sugar.
This quick start guide provides a basic introduction to the laravel framework and includes content on database migrations, the eloquent ORM, routing, validation, Views, and Blade templates. This is a great starting point if you are brand new to the laravel framework or PHP frameworks in general.
If you have already used laravel or other PHP frameworks, you may wish to consult one of our more advanced quick starts.
let’s use a migration to define a database table to hold all of our tasks. Laravel’s database migrations provide an easy way to define your database table structure and modifications using fluent, expressive PHP code. Instead of telling your team members to manually add columns to their local copy of the database, your teammates can simply run the migrations you push into source control.
Eloquent is laravel’s default ORM (object-relational mapper). Eloquent makes it painless to retrieve and store data in your database using clearly defined “models”. Usually, each eloquent model corresponds directly with a single database table.