Tutorials / Laravel Tutorial

Laravel Tutorial

From the request lifecycle to queues, testing and performance.

Level 1

Foundation

How it all works under the hood.

  1. Modern PHP for LaravelClasses, namespaces, closures, enums and attributes — the PHP you read in every Laravel file.
  2. How Laravel WorksThe request lifecycle, MVC and what happens between index.php and a response.
  3. Project Structure & ToolingDirectories, Composer, Artisan, .env configuration and Vite.
  4. Service Container & FacadesDependency injection, service providers and how facades really work.
Level 2

Basic

First working examples.

  1. Routing & ControllersRoutes, parameters, named routes, controllers and resource controllers.
  2. Blade TemplatesLayouts, components, slots, directives and escaping.
  3. Migrations & EloquentSchema migrations, models and CRUD with Eloquent.
  4. Query Builder & Raw SQLDB::table, joins, aggregates, transactions and when to drop below Eloquent.
  5. Requests & ResponsesReading input, query strings and headers; returning JSON, redirects, downloads and status codes.
  6. Collections & Helpersmap, filter, groupBy, pluck and friends, plus the Str, Arr and date helpers you use daily.
  7. Sessions, Redirects & Flash MessagesStoring state between requests, redirect-with-message and old input.
  8. Forms & ValidationForm requests, validation rules, errors and old input.
  9. Building a CRUD FeatureRoutes, controller, model, views and validation together: list, create, edit and delete.
Level 3

Medium

Real-world patterns.

  1. Eloquent RelationshipsOne-to-many, many-to-many, eager loading and the N+1 problem.
  2. Model Events, Observers & Soft DeletesHooking into create/update/delete, observers, soft deletes and restoring records.
  3. Login, Registration & LogoutGuards, hashing, remember-me, password resets and protecting routes.
  4. Middleware, Auth & PoliciesRequest pipeline, authentication, gates and policies.
  5. Pagination, Search & Filteringpaginate(), query scopes, filter forms and keeping the query string.
  6. File Uploads & StorageValidating uploads, the Storage facade, disks and public URLs.
  7. Mail & NotificationsMailables, Markdown mail, notification channels and previewing emails.
  8. Errors, Logging & DebuggingException handling, custom error pages, the Log facade and debugging tools.
  9. Calling External APIsThe HTTP client: requests, retries, timeouts, faking responses in tests.
  10. LocalizationTranslation files, __() and trans_choice, locale switching and translated validation messages.
Level 4

Advanced

Architecture, scale and testing.

  1. Queues, Jobs & EventsAsync work, listeners, retries and failure handling.
  2. Building APIsAPI routes, resources, Sanctum tokens and rate limiting.
  3. Testing & PerformanceFeature tests, factories, caching and query optimisation.
  4. Caching StrategiesCache::remember, tags and invalidation, config/route caching and what to cache.
  5. Custom Commands & SchedulingWriting Artisan commands, arguments and options, and the task scheduler.
  6. Services, Actions & ArchitectureKeeping controllers thin: service classes, single-action classes and DTOs.
  7. Inertia & Starter KitsBuilding a Vue front end without an API layer, and what the starter kits give you.