Laravel
Get expert guidance on Laravel 12.x application development, from foundational concepts like routing and database migrations to advanced patterns including Eloquent relationships, API design, and authentication with Sanctum. This skill covers the full development lifecycle—models, validation, queues, dependency injection, and best practices for building scalable web applications.
Laravel skill provides comprehensive guidance on Laravel 12.x development, including routing, Eloquent ORM, migrations, and API building.
AI-generated summary based on this skill's SKILL.md
Decision gist · record as of 2026-02-19
Laravel skill provides comprehensive guidance on Laravel 12.x development, including routing, Eloquent ORM, migrations, and API building. Get expert guidance on Laravel 12.x application development, from foundational concepts like routing and database migrations to advanced patterns including Eloquent relationships, API design, and authentication with Sanctum. This skill covers the full development lifecycle—models, validation, queues, dependency injection, and best practices for building scalable web applications.
Use it when
- Laravel routing and controllers form the core of request handling.
- Laravel database migrations are version-controlled PHP files that define database schema changes.
Install
rawveg/skillsforge-marketplace/laravel · repository language: Python
generated, unverified - the skill's exact subdirectory could not be determined; check the repository on GitHub
Open directory. Skills are indexed for reading, not audited. Review a skill's body before installing it.
Frequently asked questions
AI-generated answers based on this skill's SKILL.md and metadata
What is the Laravel framework and what can I build with it?
Laravel is a PHP web framework designed for building modern web applications and REST APIs. With Laravel, you can create scalable web applications using its comprehensive toolkit that includes routing, middleware, database migrations, Eloquent ORM, authentication, and templating with Blade. Laravel provides a structured approach to development with built-in features for validation, queues, dependency injection, and error handling, making it ideal for both simple websites and complex enterprise applications.
How do Laravel routing and controllers handle requests?
Laravel routing and controllers form the core of request handling. Routes define URL patterns and map them to controller actions, while controllers contain the business logic for processing requests. Laravel's routing system supports HTTP verbs (GET, POST, PUT, DELETE), route parameters, and middleware attachment. Controllers organize related request handling logic, making applications maintainable. Middleware can be applied globally or to specific routes to filter requests before they reach controllers, enabling authentication checks, CORS handling, and other cross-cutting concerns.
What are Laravel database migrations and Eloquent ORM?
Laravel database migrations are version-controlled PHP files that define database schema changes, allowing teams to track and apply database modifications consistently across environments. Eloquent ORM is Laravel's object-relational mapping layer that lets you interact with databases using PHP objects instead of raw SQL. Eloquent supports relationships (one-to-many, many-to-many, etc.), eager loading, query scoping, and provides a fluent query builder. Together, migrations and Eloquent enable efficient database management and querying within Laravel applications.
How do I set up authentication and build REST APIs in Laravel?
Laravel provides multiple authentication options including session-based auth and token-based authentication with Sanctum for API protection. For REST APIs, Laravel offers a structured approach using routes, controllers, and resource classes to define endpoints. Sanctum enables stateless API authentication via tokens, supporting both single-page applications and mobile clients. Laravel's validation, error handling, and response formatting features streamline API development. Best practices include using route model binding, implementing proper HTTP status codes, and leveraging Laravel's built-in features for rate limiting and CORS configuration.
What Laravel best practices should I follow for production applications?
Laravel best practices include using environment configuration files for sensitive data, implementing proper error handling and logging, writing tests with Laravel's testing framework, optimizing queries with eager loading, caching frequently accessed data, and using queues for long-running tasks. Security practices involve validating all user input, using Laravel's built-in protection against CSRF, SQL injection, and XSS attacks, and keeping dependencies updated via Composer. For deployment, use Artisan commands for migrations and cache clearing, implement proper file permissions, and monitor application performance.
What are Laravel Blade templates and Artisan commands?
Laravel Blade is a lightweight templating engine that compiles to plain PHP, providing syntax for control structures, loops, and component reuse without the overhead of complex template languages. Blade supports template inheritance, includes, and directives like @if, @foreach, and @auth. Artisan is Laravel's command-line interface providing built-in commands for common tasks: php artisan migrate runs migrations, php artisan tinker opens an interactive shell, php artisan make:controller generates controllers, and many others. Custom Artisan commands can be created for application-specific tasks, automating repetitive development workflows.
Let your AI agent find skills like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 56,283 agent skills by what they can do, searchable in plain language.
wish › “Learn Laravel framework fundamentals and architecture”
Give your agent the search over MCP, or paste the wish link into any chat. No install? Search from any chat →
Related skills
Laravel Best Practices is a comprehensive reference for building scalable Laravel 13 applications, covering 31 rules organized across architecture, Eloquent patterns, controllers, validation, security, performance, and API design. Use it when structuring applications, creating models and migrations, implementing form requests, or designing APIs. Includes essential patterns for service classes, repositories, form requests, and Eloquent models.
Laravel Specialist guides you through building production-ready Laravel 10+ applications with type-safe Eloquent models, queue workers, API resources, and Livewire components. It enforces modern PHP 8.2+ patterns, eager loading, dependency injection, and >85% test coverage across feature and unit tests. Use it for architecting database schemas, implementing authentication flows, optimizing queries, and validating code against PSR-12 standards.
Learn how to structure Laravel API Resources for clean model transformation and consistent JSON responses. This skill covers conditional attributes, relationship loading, collections with pagination, and techniques to prevent N+1 queries.
This skill guides you through a four-phase debugging methodology designed to eliminate guesswork when troubleshooting Laravel issues. By enforcing root cause investigation before any fix attempt, it helps you avoid symptom-masking patches that create new problems. The process covers log analysis, Laravel Telescope inspection, data flow tracing, pattern comparison, hypothesis testing, and test-driven implementation.
This skill guides you through hardening Laravel applications against common vulnerabilities. Learn to configure Sanctum and Passport for secure authentication, implement role-based access control with gates and policies, enforce HTTPS, manage sessions safely, and validate passwords against compromised databases.
PHP Expert provides in-depth instruction on PHP 8+ language features including union types, named arguments, match expressions, attributes, and enums. Learn Laravel framework patterns, Composer dependency management, and object-oriented design principles for building robust applications.
More skills eloquent-best-practices (MIT) · laravel-patterns (MIT) · laravel-specialist (MIT) · laravel-authorization-patterns (MIT) · laravel-database-optimization (MIT) · laravel-middleware-patterns (MIT) · laravel-11-12-app-guidelines (Apache-2.0) · Hunt Laravel (NOASSERTION)