Skip to content
BENIBIX Learn

Laravel

Development🌐 Web DevelopmentFrameworks

Also known as Laravel PHP, Laravel Framework

A PHP web framework. It is known for clean code and lots of tools built in.

Think of it like

Think of it like a neat, well-stocked workshop for PHP. Every tool hangs where you expect it.

Example

Laravel was created by Taylor Otwell. Jack builds a booking system for a gym with it. Its queues send the reminder emails.

Why it matters

PHP still runs a huge share of the web. Laravel is the most popular way to write it today.

Definition

Laravel is a PHP web framework with clean code that is easy to read. It comes with routing, a database layer called Eloquent, migrations, queues and a login system. A tool called Artisan makes files and runs tasks for you. It was first released in 2011 and has a large set of add-on tools. It made PHP feel new again for many coders.

Example code

console
$ composer create-project laravel/laravel shop
This makes a new Laravel app in a folder called shop.

Common mistake

Running heavy jobs like emails inside the web request. Put them on a queue so pages stay fast.

Key takeaways

  1. 1
    Clean PHP. Readable, modern code.
  2. 2
    Many tools built in. Database, queues, logins.
  3. 3
    Artisan. A helper on the command line.