This ebook covers the basic concepts and terminology used in Laravel, such as routing, controllers, views, models and migrations.
- Routing: Routing in Laravel is how you define which URLs should map to which controller actions. Laravel provides a powerful routing system that allows you to easily define your application's routes.
- Migrations: Migrations in Laravel are a way to manage your database schema changes over time. They allow you to define changes to your database schema as a series of migrations, which can be easily run and rolled back as needed.
- Models: Models in Laravel are PHP classes that represent database tables. They allow you to interact with the database in an object-oriented way, making it easy to read and write data to and from the database.
- Middleware: Middleware in Laravel allows you to add additional functionality to your application's HTTP requests and responses. You can use middleware to perform tasks such as authentication, logging, and input validation.
- Controllers: Controllers in Laravel are responsible for handling HTTP requests and returning responses. They act as a middle layer between the route and the view, allowing you to add logic and data processing to your application.
- Views: Views in Laravel are responsible for rendering HTML output to the user. They are typically composed of HTML, CSS, and PHP code.
- Blade templating engine: Blade is Laravel's built-in templating engine, which makes it easy to create reusable templates for your views. It provides a simple and intuitive syntax for including variables, conditional logic, and loops in your templates.
Complete beginner guide to start building projects with Laravel