Laravel is one of the most popular PHP frameworks. In this article, we'll look at a few tips to help you get started.
Eloquent models
Eloquent is Laravel's built-in ORM. It lets you work with the database using PHP objects instead of raw SQL.
$users = User::where('active', true)->get();
Blade templates
Blade is Laravel's templating engine. It provides a clean syntax for writing dynamic HTML pages.
@foreach ($users as $user)
<p>{{ $user->name }}</p>
@endforeach
Artisan commands
Artisan is Laravel's command line tool. It helps with code generation, database migrations, and many other tasks.
php artisan make:model Post -mfc