Laravel is a full-stack, PHP-based web framework focused on developer experience and clean, minimal code. Developed in 2011 by Taylor Otwell, inspired by frameworks like CodeIgniter, Symfony, and Ruby on Rails.
Why is Laravel better than other PHP frameworks?
MVC (Model–View–Controller) | out-of-the-box features | Face less Attacks | |
|
| Protected from sql injection | |
|
|
- Model: Represents and interacts with data stored in databases.
- View: Handles the UI using Blade templates, which mix PHP and HTML.
- Controller & Router: Handle user requests and safely interact with models.
- Monolithic web applications
- Standalone APIs
- Apps integrated with modern frontend frameworks using Inertia.js
- Authentication
- Payments
- Full-text search
- Queues, file storage, WebSockets, and more
- Requires PHP and Composer
- The default database configuration is MySQL.
- Starts at index.php
- Request flows through the HTTP Kernel.
- Middleware processes the request.
- Service providers register components, such as routers.
- Router maps URLs to controller actions.
- PHP classes with conventional methods like show, store, update, edit, and destroy
- show → GET request (read data)
- store → POST request (create data)

0 Comments