laravel
Skill15 starsChanged 43 days agoMITView on GitHub
Expert Laravel assistance covering Eloquent ORM, Blade templating, queues, service providers, and Artisan CLI. Use when developing enterprise PHP web applications and robust REST APIs.
- Reads credentials
14 other projects use a version of this.
Adopted by
Most recently taken up by
- AnyOrgName/php-skillstheir own version, first seen Nov 8, 2026
- hmj1026/dhpktheir own version, first seen Nov 6, 2026
- reisi007/agents-skillstheir own version, first seen Nov 5, 2026
- turkeryildirim/ai-skillstheir own version, first seen Nov 1, 2026
- Mindrally/skillstheir own version, first seen Oct 8, 2026
- gingerminds/claude-skillstheir own version, first seen Sep 23, 2026
Other versions14 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 14
- Mindrally/skills★ 275same name
- youlaitech/youlai-skills★ 63same name
- rawveg/skillsforge-marketplace★ 40same name
- ulpi-io/browse★ 15same name
- AnyOrgName/php-skills★ 4same name
- turkeryildirim/ai-skills★ 4same name
- dafaalz/agent-skills★ 2same name
- gingerminds/claude-skills★ 2same name
- hmj1026/dhpk★ 2same name
- hawk-digital-environments/ai-skills★ 1same name
4 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository350 other files it gives its agents.
- airflowSkill
- catboostSkill
- claudeSkill
- comfyuiSkill
- cursor-aiSkill
- dalleSkill
- daskSkill
- dbtSkill
- deepseekSkill
- fastaiSkill
- geminiSkill
- github-copilotSkill
- huggingfaceSkill
- jaxSkill
- jupyterSkill
- kerasSkill
- langchainSkill
- lightgbmSkill
- llamaindexSkill
- llamaSkill
- matplotlibSkill
- midjourneySkill
- mistralSkill
- mlflowSkill
- nltkSkill
- numpySkill
- ollamaSkill
- openai-gptSkill
- opencvSkill
- pandasSkill
- perplexitySkill
- plotlySkill
- polarsSkill
- pytorchSkill
- raySkill
- scikit-learnSkill
- seabornSkill
- spacySkill
- sparkSkill
- stable-diffusionSkill
- tensorflowSkill
- vaexSkill
- weights-biasesSkill
- whisperSkill
- xgboostSkill
- api-gatewaySkill
- clean-architectureSkill
- cqrsSkill
- domain-driven-designSkill
- event-drivenSkill
- event-sourcingSkill
- graphqlSkill
- grpcSkill
- hexagonalSkill
- microservicesSkill
- modular-monolithSkill
- monolithSkill
- rest-apiSkill
- sagaSkill
- serverlessSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
4 rules. 0 are common, 3 are distinctive, and 1 is very specific to this project.
0
Common
Most of the 12 edited versions we read keep these.
3
Distinctive
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 171
Use Form Requests for input validation instead of validating inline inside controllers.
- Distinctive: line 173
Run queue workers under supervisor with Redis for reliable background job execution.
- Distinctive: line 178
Run migrations directly in production without a verified backup and dry run.
- Very specific: line 179
Commit the .env file to source control.
“Common” is measured: kept by at least 6 in 10 of the 12 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Laravel
Laravel is an expressive PHP web application framework providing an elegant developer experience with Eloquent ORM, robust queues, events, and native real-time broadcasting.
When to Use
- Enterprise Full-Stack PHP Web Applications: Building robust web portals with Eloquent ORM, Blade, and queues.
- Modern Monoliths with Inertia.js: Pairing Laravel backend routes directly with React or Vue frontends without API boilerplate.
- High-Velocity REST APIs: Utilizing Laravel API Resources, Sanctum authentication, and Form Requests.
- Real-Time Applications with Laravel Reverb: First-party WebSocket broadcasting and real-time dashboard events.
Quick Start
// routes/web.php
Route::get('/', function () {
return view('welcome');
});
// app/Models/User.php
// Elegant Active Record
$users = User::where('active', 1)->get();Core Concepts
Eloquent ORM with Relationships & Scopes
Expressive database models with type hinting:
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\HasMany;
use Illuminate\Database\Eloquent\Builder;
class Customer extends Model
{
protected $fillable = ['name', 'email', 'is_active'];
public function orders(): HasMany
{
return $this->hasMany(Order::class);
}
// Local query scope
public function scopeActive(Builder $query): void
{
$query->where('is_active', true);
}
}Form Requests & Validated Controllers
Strict input validation separated from controller logic:
namespace App\Http\Requests;
use Illuminate\Foundation\Http\FormRequest;
class StoreOrderRequest extends FormRequest
{
public function authorize(): bool
{
return $this->user() !== null;
}
public function rules(): array
{
return [
'customer_id' => 'required|exists:customers,id',
'amount' => 'required|numeric|min:0.01',
'items' => 'required|array|min:1',
'items.*.product_id' => 'required|integer',
'items.*.qty' => 'required|integer|min:1',
];
}
}
// In Controller:
namespace App\Http\Controllers;
use App\Http\Requests\StoreOrderRequest;
use App\Models\Order;
use Illuminate\Http\JsonResponse;
class OrderController extends Controller
{
public function store(StoreOrderRequest $request): JsonResponse
{
$validated = $request->validated();
$order = Order::create($validated);
return response()->json($order, 201);
}
}Asynchronous Queue Workers & Jobs
Offloading heavy processing to Redis or SQS workers:
namespace App\Jobs;
use App\Models\Order;
use Illuminate\Bus\Queueable;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Foundation\Bus\Dispatchable;
use Illuminate\Queue\InteractsWithQueue;
use Illuminate\Queue\SerializesModels;
use Illuminate\Support\Facades\Mail;
class ProcessInvoiceJob implements ShouldQueue
{
use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;
public function __construct(public Order $order) {}
public function handle(): void
{
// Generate PDF and send invoice email
}
}Common Patterns
Eloquent Scope and Queue Dispatch
Problem: Processing heavy invoice calculations synchronously blocks user HTTP requests.
Solution: Dispatch queued jobs with Eloquent local scopes:
namespace App\Http\Controllers;
use App\Models\Order;
use App\Jobs\ProcessInvoiceJob;
use Illuminate\Http\JsonResponse;
class OrderController extends Controller
{
public function complete(int $id): JsonResponse
{
$order = Order::active()->findOrFail($id);
$order->update(['status' => 'completed']);
// Dispatch to background queue worker
ProcessInvoiceJob::dispatch($order)->onQueue('invoices');
return response()->json(['message' => 'Order completed, invoice queued']);
}
}Best Practices
Do:
- Target Laravel 11/12 with streamlined application structure and minimal configuration files.
- Use Form Requests for input validation instead of validating inline inside controllers.
- Utilize Eloquent eager loading (
with(['customer', 'items'])) to prevent N+1 queries. - Run queue workers under supervisor with Redis for reliable background job execution.
Don't:
- Execute raw database queries in Blade views or controllers; use Eloquent or repository classes.
- Run migrations directly in production without a verified backup and dry run.
- Commit the
.envfile to source control.
Troubleshooting
| Error | Cause | Solution |
No application encryption key has been specified | APP_KEY missing in .env configuration file. | Run php artisan key:generate. |
Class '...' not found / Target class does not exist | Namespace mismatch or service provider not loaded. | Run composer dump-autoload and check namespace in config/app.php. |
SQLSTATE[HY000] [2002] Connection refused | Database service down or .env DB host/port misconfigured. | Verify database credentials and host (127.0.0.1 vs localhost). |
References
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

