[!WARNING] This content is AI-generated. Verify before relying on it.

Laravel

Laravel is an expressive, elegant PHP web application framework utilizing the MVC (Model-View-Controller) architectural pattern.

Topic Index

TopicDescription
Artisan CommandsDaily CLI reference for generators, database, routing, and cache optimization
Migrations & SeedingDatabase schema version control, column modifiers, seeders, and factories
Form Requests & ValidationDedicated request validation classes, common rules, and controller integration
MailerMailables, envelopes, content, attachments, and email queueing
Task SchedulingManaging scheduled cron tasks in code, execution frequencies, and local workers
Authorization & PoliciesResource authorization, Gates vs Policies, and Blade/Controller checks

Standard Directory Structure

PathPurpose
app/Models/Eloquent ORM models
app/Http/Controllers/HTTP controllers handling incoming requests
app/Http/Requests/Form Request validation and authorization classes
app/Policies/Authorization policies mapped to models
app/Mail/Mailable classes for email generation
database/migrations/Schema definition files executed in order
database/seeders/Database seeders for test and initial data
database/factories/Model factories for generating fake test data
routes/web.phpStateful web routes (cookies, session, CSRF)
routes/api.phpStateless API routes with token/sanctum authentication
routes/console.phpArtisan console commands and scheduled tasks (Laravel 11+)
resources/views/Blade templates