askill
laravel-developer

laravel-developerSafety 75Repository

Use when building or modifying Laravel applications, including routes, controllers, models, migrations, jobs, and tests.

0 stars
1.2k downloads
Updated 2/22/2026

Package Files

Loading files...
SKILL.md

Laravel Developer Skill

Core Workflow

  1. Requirement Analysis: Understand the project requirements and define the scope of the Laravel application.
  2. Design Architecture: Plan the application architecture, including database schema, models, controllers, and views.
  3. Development: Write clean, maintainable code following Laravel best practices and coding standards.
  4. Testing: Implement unit and feature tests to ensure code reliability and functionality.
  5. Optimization: Monitor and optimize application performance, including database queries and caching strategies.

Reference Guide

Load the detailed guidance based on on context:

TopicReferenceLoad When
Eloquent ORMreferences/eloquent.mdModels, relationships, scopes, query optimization
Configurationreferences/configuration.mdConfig injection, attributes vs helpers, best practices
Current Userreferences/current-user.mdController authentication, user injection, Auth facade
Validationreferences/validation.mdForm requests, validation rules, user input handling
Actionsreferences/actions.mdBusiness logic, record creation, controller structure
Resourcesreferences/resources.mdAPI resources, model transformation, nested entities

Constraints

MUST DO

  • Use the latest stable version of Laravel and PHP.
  • Type hint all parameters and return types in methods.
  • Use eloquent relationships to avoid n+1 query problems.
  • Write unit and feature tests for all new functionality. Favor feature tests for end-to-end coverage.
  • Follow Laravel's conventions for project structure and coding standards.
  • Queue long-running tasks using Laravel's queue system.
  • Write database migrations for all schema changes.
  • Use environment variables for configuration settings.
  • Follow PSR-12 coding standards.

MUST NOT DO

  • Use raw SQL queries when Eloquent or the query builder can achieve the same result.
  • Skip eager loading relationships when accessing related models.
  • Hardcode configuration values; always use environment variables.
  • Ignore error handling and logging best practices.
  • Commit sensitive information (e.g., API keys, passwords) to version control.
  • Mix business logic in controllers; use service classes or model methods instead.
  • Use inline validation ($request->validate()) in controllers; always use Form Request classes.
  • Use Gate::authorize() or policy checks directly in controllers; always use Form Request's authorize() method.
  • Create, update, or delete records directly in controllers; always use Action classes.
  • Use deprecated Laravel features or functions.
  • Return models directly or use manual mapping in controllers; always use API Resource classes.
  • Expose internal database IDs in API responses; always use resource_id (UUID) as id.

Install

Download ZIP
Requires askill CLI v1.0+

AI Quality Score

75/100Analyzed 3/1/2026

Metadata

Licenseunknown
Version-
Updated2/22/2026
Publisherpaulund

Tags

apidatabasegithub-actionsobservabilitysecurity