Back-end & frameworks

Laravel 12: build a complete web application

Build a complete application with Laravel: routes, Blade, Eloquent, authentication, queues and tests.

Request this program
Duration
28 h · 4 days
Level
Intermediate
Format
On site · Remote · Blended
Max. group size
12 participants

Overview

This program covers the whole Laravel framework: architecture, routing, controllers, Blade views, middleware, service container, database, Eloquent, authentication, authorization, queues, events, notifications and tests. The last module presents the ecosystem and the use of AI with Laravel.

Who this program is for

  • PHP developers wishing to adopt Laravel
  • Full stack developers
  • Teams starting a new PHP project

Prerequisites

  • Solid knowledge of PHP, including object-oriented programming
  • Notions of SQL

Learning objectives

  • Describe the architecture of Laravel
  • Create routes, controllers and Blade views
  • Use migrations, the query builder and Eloquent
  • Handle forms, validation and authentication
  • Control access with gates and policies
  • Use queues, events, notifications and cache
  • Test an application and expose an API

Detailed curriculum

8 modules · 28 h · 4 days

Day 1
Architecture, routes and controllers3.5 h
50% theory · 50% practice
  • Installation and project structure
  • Request lifecycle
  • Routes and groups
  • Controllers and resources
  • URL generation
Blade views3.5 h🛠 1 workshop
30% theory · 70% practice
  • Blade syntax and template inheritance
  • Components and slots
  • Passing data to views
  • Responses and redirects
  • Assets and front-end build
🛠 Hands-on workshops
Application layout1.5 h

Create the application's main template.

✅ Deliverable : A reusable Blade template
Day 2
Middleware and service container3.5 h
50% theory · 50% practice
  • Writing and applying a middleware
  • Service container and injection
  • Service providers
  • Facades: value and limits
  • Configuration
Database and migrations3.5 h🛠 1 workshop
30% theory · 70% practice
  • Connection configuration
  • Migrations and seeders
  • Query builder
  • Factories for test data
  • Modeling best practices
🛠 Hands-on workshops
Database schema1.5 h

Create the project's schema and datasets.

✅ Deliverable : Migrations and seeders
Day 3
Eloquent3.5 h🛠 1 workshop
30% theory · 70% practice
  • Models and conventions
  • Casts and computed attributes
  • One-to-many and many-to-many relations
  • Queries, scopes and eager loading
  • Pagination and filters
🛠 Hands-on workshops
Business model2 h

Write the domain's Eloquent model and its relations.

✅ Deliverable : Tested models
Forms, authentication and authorization3.5 h
50% theory · 50% practice
  • Blade forms and CSRF protection
  • Form requests and validation
  • Authentication with a starter kit
  • Gates and policies
  • Sessions
Day 4
Asynchronous processing and communication3.5 h
50% theory · 50% practice
  • Artisan and scheduled tasks
  • Sending emails
  • Queues and jobs
  • Events and listeners
  • Notifications and cache
API, tests and ecosystem3.5 h🛠 1 workshop
30% theory · 70% practice
  • API resources and token authentication
  • Testing with Pest
  • Quality and observability tools
  • Overview: Livewire, Inertia, Filament
  • Using AI with Laravel
🛠 Hands-on workshops
Capstone project2 h

Finalize a feature end to end with tests.

✅ Deliverable : A tested feature

Tools and technologies

ComposerLaravelMySQLPHPPostmanVisual Studio Code

Teaching methods

  • Alternating short lectures and hands-on work
  • Live demonstrations by the trainer
  • Capstone project built throughout the modules
  • Group corrections and discussion of best practices

Assessment

  • Hands-on exercises corrected in each module
  • Mini-project completed at the end of the course
  • Knowledge-check quiz

Required equipment

  • A computer with an internet connection
  • PHP 8, Composer and a local database

Resources provided

  • Course materials and repository of corrected exercises

Career outcomes

  • A complete Laravel application with authentication
  • A secure API
  • A clear view of the Laravel ecosystem

Related video courses

My video courses that go with this program, to get ready for the training or to review afterwards. Free with an account.