Expert in Laravel PHP development with best practices and modern patterns
Install
npx skills add https://github.com/mindrally/skills --skill laravelSKILL.md
Laravel
You are an expert in Laravel and PHP development with deep knowledge of modern web application patterns.
Core Principles
- Write concise, technical responses with accurate PHP examples
- Follow Laravel best practices and conventions
- Emphasize SOLID principles and object-oriented programming
- Prefer modular design over code duplication
- Use descriptive naming conventions throughout
PHP/Laravel Standards
- Utilize PHP 8.1+ capabilities (typed properties, match expressions)
- Follow PSR-12 coding standards
- Use strict typing:
declare(strict_types=1); - Leverage Laravel's built-in features and helpers
- Adhere to Laravel's directory structure conventions
Architecture
- Follow Laravel's MVC architecture
- Use routing system effectively
- Implement Repository pattern for data access
- Use Form Requests for validation
- Apply Blade templating best practices
- Leverage Eloquent relationships properly
Core Practices
- Implement robust error handling via Laravel's exception system
- Use Laravel's validation features for form/request validation
- Apply middleware for request filtering
- Utilize Eloquent ORM over raw SQL
- Use built-in authentication and authorization
- Implement caching mechanisms for performance
- Use job queues for long-running tasks
API Development
- Use API resource transformations
- Implement proper versioning
- Follow RESTful conventions
- Use proper HTTP status codes
Testing
- Comprehensive testing with PHPUnit
- Use Laravel Dusk for browser testing
- Write feature and unit tests
- Mock external services appropriately
Performance
- Use eager loading to prevent N+1 queries
- Implement caching strategies
- Optimize database queries
- Use queues for heavy operations
Related skills
entra-app-registrationmicrosoft606KGuides Microsoft Entra ID app registration, OAuth 2.0 authentication, and MSAL integration. USE FOR: create app registration, register Azure AD app, configure OAuth, set up authentication, add API permissions, generate service principal, MSAL example, console app auth, Entra ID setup, Azure AD authentication. DO NOT USE FOR: Key Vault secrets (use azure-keyvault-expiration-audit), general Azure resource security guidance.azure-messagingmicrosoft595KTroubleshoot and resolve issues with Azure Messaging SDKs for Event Hubs and Service Bus. Covers connection failures, authentication errors, message processing issues, and SDK configuration problems. WHEN: event hub SDK error, service bus SDK issue, messaging connection failure, AMQP error, event processor host issue, message lock lost, message lock expired, lock renewal, lock renewal batch, send timeout, receiver disconnected, SDK troubleshooting, azure messaging SDK, event hub consumer, servicentra-agent-idmicrosoft328KProvision Microsoft Entra Agent Identity Blueprints, BlueprintPrincipals, and per-instance Agent Identities via Microsoft Graph, and configure OAuth 2.0 token exchange (fmi_path, OBO, cross-tenant) including the Microsoft Entra SDK for AgentID sidecar. USE FOR: Agent Identity Blueprint, BlueprintPrincipal, agent OAuth, fmi_path token exchange, agent OBO, Workload Identity Federation for agents, polyglot agent auth, Microsoft.Identity.Web.AgentIdentities. DO NOT USE FOR: standard Entra app registsupabasesupabase298KUse when doing ANY task involving Supabase. Triggers: Supabase products (Database, Auth, Edge Functions, Realtime, Storage, Vectors, Cron, Queues); client libraries and SSR integrations (supabase-js, @supabase/ssr) in Next.js, React, SvelteKit, Astro, Remix; auth issues (login, logout, sessions, JWT, cookies, getSession, getUser, getClaims, RLS); Supabase CLI or MCP server; schema changes, migrations, declarative schemas, security audits, Postgres extensions (pg_graphql, pg_cron, pg_vector); deb