- Use Eloquent ORM instead of raw SQL queries when possible.
- Implement Repository pattern for data access layer.
- Use Laravel's built-in authentication and authorization features.
- Utilize Laravel's caching mechanisms for improved performance.
- Implement job queues for long-running tasks.
- Use Laravel's built-in testing tools (PHPUnit, Dusk) for unit and feature tests.
- Implement API versioning for public APIs.
- Use Laravel's localization features for multi-language support.
- Implement proper CSRF protection and security measures.
- Use Laravel Mix for asset compilation.
- Implement proper database indexing for improved query performance.
- Use Laravel's built-in pagination features.
- Implement proper error logging and monitoring.
Laravel Best Practices Rules
[Applies to: /**/*.php] Laravel specific best practices for different modules and features.
Laravel Best Practices Rules by Tryboy869 · df52ef0
npx skillmds add tryboy869/laravel-best-practices-rules File contents
---name: laravel-best-practices-rulesdescription: [Applies to: /**/*.php] Laravel specific best practices for different modules and features.---- Use Eloquent ORM instead of raw SQL queries when possible.- Implement Repository pattern for data access layer.- Use Laravel's built-in authentication and authorization features.- Utilize Laravel's caching mechanisms for improved performance.- Implement job queues for long-running tasks.- Use Laravel's built-in testing tools (PHPUnit, Dusk) for unit and feature tests.- Implement API versioning for public APIs.- Use Laravel's localization features for multi-language support.- Implement proper CSRF protection and security measures.- Use Laravel Mix for asset compilation.- Implement proper database indexing for improved query performance.- Use Laravel's built-in pagination features.- Implement proper error logging and monitoring.
Tryboy869/dojutsu-for-ai/tree/main/senjutsu/skills/laravel-best-practices-rules commit df52ef0f78
Frequently asked questions
Run npx skillmds add tryboy869/laravel-best-practices-rules in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
[Applies to: /**/*.php] Laravel specific best practices for different modules and features. It is listed under Coding & Dev Tools on SkillMD.
This skill has not completed SkillMD's automated safety review yet. Capability flags: executes scripts. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
Tryboy869 (@tryboy869) published this skill. Their other Agent Skills are listed on their SkillMD profile.