Tutorials / Laravel Tutorial
Laravel Tutorial
From the request lifecycle to queues, testing and performance.
Level 1
Foundation
How it all works under the hood.
- Modern PHP for LaravelClasses, namespaces, closures, enums and attributes — the PHP you read in every Laravel file.
- How Laravel WorksThe request lifecycle, MVC and what happens between index.php and a response.
- Project Structure & ToolingDirectories, Composer, Artisan, .env configuration and Vite.
- Service Container & FacadesDependency injection, service providers and how facades really work.
Level 2
Basic
First working examples.
- Routing & ControllersRoutes, parameters, named routes, controllers and resource controllers.
- Blade TemplatesLayouts, components, slots, directives and escaping.
- Migrations & EloquentSchema migrations, models and CRUD with Eloquent.
- Query Builder & Raw SQLDB::table, joins, aggregates, transactions and when to drop below Eloquent.
- Requests & ResponsesReading input, query strings and headers; returning JSON, redirects, downloads and status codes.
- Collections & Helpersmap, filter, groupBy, pluck and friends, plus the Str, Arr and date helpers you use daily.
- Sessions, Redirects & Flash MessagesStoring state between requests, redirect-with-message and old input.
- Forms & ValidationForm requests, validation rules, errors and old input.
- Building a CRUD FeatureRoutes, controller, model, views and validation together: list, create, edit and delete.
Level 3
Medium
Real-world patterns.
- Eloquent RelationshipsOne-to-many, many-to-many, eager loading and the N+1 problem.
- Model Events, Observers & Soft DeletesHooking into create/update/delete, observers, soft deletes and restoring records.
- Login, Registration & LogoutGuards, hashing, remember-me, password resets and protecting routes.
- Middleware, Auth & PoliciesRequest pipeline, authentication, gates and policies.
- Pagination, Search & Filteringpaginate(), query scopes, filter forms and keeping the query string.
- File Uploads & StorageValidating uploads, the Storage facade, disks and public URLs.
- Mail & NotificationsMailables, Markdown mail, notification channels and previewing emails.
- Errors, Logging & DebuggingException handling, custom error pages, the Log facade and debugging tools.
- Calling External APIsThe HTTP client: requests, retries, timeouts, faking responses in tests.
- LocalizationTranslation files, __() and trans_choice, locale switching and translated validation messages.
Level 4
Advanced
Architecture, scale and testing.
- Queues, Jobs & EventsAsync work, listeners, retries and failure handling.
- Building APIsAPI routes, resources, Sanctum tokens and rate limiting.
- Testing & PerformanceFeature tests, factories, caching and query optimisation.
- Caching StrategiesCache::remember, tags and invalidation, config/route caching and what to cache.
- Custom Commands & SchedulingWriting Artisan commands, arguments and options, and the task scheduler.
- Services, Actions & ArchitectureKeeping controllers thin: service classes, single-action classes and DTOs.
- Inertia & Starter KitsBuilding a Vue front end without an API layer, and what the starter kits give you.