Web Dev Academy Backend frameworks · Laravel Tool 42 / 64
Backend frameworks

Laravel

PHP's most-loved framework. Laravel gives you elegant routing, the Eloquent ORM, Blade templates and an "artisan" CLI — batteries included for building full web apps fast.

Demo 01

Routes → controllers → JSON

In Laravel you declare routes in routes/web.php, point them at a controller method, and return data. Click a route to "visit" it and see the simulated response.

// routes/web.php
Route::get('/posts', [PostController::class, 'index']);
Route::get('/posts/{id}', [PostController::class, 'show']);

// app/Http/Controllers/PostController.php
class PostController {
    public function index() {
        return Post::all();  // auto-serialized to JSON
    }
}
Demo 02

Eloquent ORM → query builder → result table

Eloquent lets you talk to the database in expressive PHP instead of SQL. Pick a query and watch the simulated posts table respond.

Demo 03

Blade templates — live render

Blade is Laravel's templating engine. @foreach, {{ }} and layouts compile to plain PHP. Edit the title below and watch the rendered HTML update.

Page title:
<h1>{{ $title }}</h1>
<ul>
  @foreach ($posts as $post)
    <li>{{ $post->title }}</li>
  @endforeach
</ul>
Rendered output:
Demo 04

Artisan: generate a model + migration + controller

Laravel's artisan CLI scaffolds your app. Click to run the command and watch the generated files appear.

    Demo 05

    Why Laravel?

    It bundles everything a web app usually needs.

  • Eloquent ORM — models map to tables, relationships in one line.
  • Blade + Vite — templating plus a modern asset pipeline.
  • Migrations & seeders — version-controlled database schema.
  • Auth, queues, mail, validation — built in, not bolted on.
  • i
    The route visitor, Eloquent query table, Blade renderer and artisan scaffolder are simulated with vanilla JavaScript — real Laravel runs PHP on a server with a real database (MySQL/Postgres). The code blocks show genuine Laravel/Blade/Eloquent syntax. The shared CSS shell provides page styling.

    ↑ All 64 tools