Skip to main content

Laravel

Overview

Laravel is a PHP web framework known for expressive syntax, Eloquent ORM, routing, queues, events, and a rich ecosystem (Forge, Vapor, Nova). It suits monolith APIs, full-stack Blade apps, and Livewire/Inertia-style hybrid UIs.

Key concepts

  • MVC — Models, views (Blade), controllers.
  • Artisan CLI — Scaffolding, migrations, queues, schedules.
  • Service container — Dependency injection and bindings.
  • Eloquent — Active-record style ORM with relationships.
  • Livewire — Server-driven reactive components without writing a separate SPA.

Request lifecycle (simplified)

Sample: route closure

<?php

use Illuminate\Support\Facades\Route;

Route::get('/api/health', function () {
return response()->json(['ok' => true]);
});

LiveWire

Laravel Livewire builds dynamic interfaces in PHP with minimal JavaScript—ideal for dashboards and forms that still feel interactive.

References