php-laravel_skill

This skill helps you build production-ready Laravel apps by mastering Eloquent, Blade, APIs, and queues across Laravel 10.x-11.x.
  • Python

2

GitHub Stars

1

Bundled Files

2 months ago

Catalog Refreshed

4 months ago

First Indexed

Readme & install

Copy the install command, review bundled files from the catalogue, and read any extended description pulled from the listing source.

Installation

Preview and clipboard use veilstrat where the catalogue uses aiagentskills.

npx veilstrat add skill pluginagentmarketplace/custom-plugin-php --skill php-laravel

  • SKILL.md6.4 KB

Overview

This skill teaches practical mastery of the Laravel framework (10.x–11.x) with focused modules on Eloquent, Blade, APIs, queues, and testing. It delivers version-aware guidance, code examples, and exercises to build production-ready applications. Use it to get concise, actionable patterns and troubleshooting for common Laravel problems.

How this skill works

The skill validates input parameters (topic, level, Laravel version, stack) and loads version-specific content. It routes to topic modules that return explanations, example code, exercises, and recovery instructions for common errors like missing packages or version incompatibility. Outputs include example models, controllers, jobs, and test templates tailored to the requested level.

When to use it

  • Learn or teach specific Laravel topics (Eloquent, routing, Blade, authentication, queues, testing, API).
  • Prepare production-ready features with Laravel 11 compatibility and best practices.
  • Generate concise code examples and test templates for implementation or review.
  • Troubleshoot common issues like N+1 queries, queue failures, or missing composer packages.
  • Design API endpoints with resources, pagination, rate limiting, and versioning.

Best practices

  • Always eager-load relationships to prevent N+1 queries (use with() and scopes).
  • Keep controllers thin: validate requests, delegate to form requests, resources, or services.
  • Use API Resources for consistent JSON responses and pagination.
  • Define jobs with clear retry/backoff and consider middleware like WithoutOverlapping.
  • Write feature tests using factories and Sanctum for authenticated API flows.

Example use cases

  • Build a blog with Posts, Comments, and polymorphic media demonstrating Eloquent relationships.
  • Implement a paginated API with resources, filtering, and Sanctum authentication.
  • Create queued email jobs with retries, backoff, middleware, and Horizon monitoring.
  • Add advanced Eloquent features: custom casts, accessors, scopes, and transaction patterns.
  • Write feature tests for list and create endpoints using factories and RefreshDatabase.

FAQ

Content targets Laravel 10.x and 11.x, with 11 as the default when not specified.

How does it handle missing packages or version mismatches?

It returns clear error codes and recovery tips, such as composer require commands or upgrade suggestions.

Built by
VeilStrat
AI signals for GTM teams
© 2026 VeilStrat. All rights reserved.All systems operational
php-laravel skill by pluginagentmarketplace/custom-plugin-php | VeilStrat