Skip to content
Back to skills

Laravel Development

ASecurity

Master Laravel 11 with Eloquent ORM, routing, middleware, queues, testing, and modern PHP development patterns.

  • 666 stars
  • 0 votes
  • 0 copies
  • 15 views
  • Added February 9, 2026
developmentphptestingapidatabase

Works with

  • api

Security analysis

A100/100

Scanned February 12, 2026

npx -y skills add majiayu000/claude-skill-registry --skill laravel-development --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Laravel Development?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Laravel Development
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/majiayu000-laravel-development/badge)](https://www.skillsdirectory.com/skills/majiayu000-laravel-development)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: laravel-development
description: Master Laravel 11 with Eloquent ORM, routing, middleware, queues, testing, and modern PHP development patterns.
---

# Laravel Development

Build modern PHP applications with Laravel's elegant syntax, Eloquent ORM, and production-ready features.

## Core Patterns

### Controller
```php
<?php

namespace App\Http\Controllers;

use App\Models\User;
use App\Http\Requests\StoreUserRequest;
use Illuminate\Http\JsonResponse;

class UserController extends Controller
{
    public function index(): JsonResponse
    {
        $users = User::all();
        return response()->json($users);
    }

    public function store(StoreUserRequest $request): JsonResponse
    {
        $user = User::create($request->validated());
        return response()->json($user, 201);
    }

    public function show(User $user): JsonResponse
    {
        return response()->json($user);
    }
}
```

### Model
```php
<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\HasMany;

class User extends Model
{
    protected $fillable = ['name', 'email'];

    protected $casts = [
        'email_verified_at' => 'datetime',
    ];

    public function posts(): HasMany
    {
        return $this->hasMany(Post::class);
    }

    public function scopeActive($query)
    {
        return $query->where('active', true);
    }
}
```

### Service
```php
<?php

namespace App\Services;

use App\Models\User;
use Illuminate\Support\Facades\Hash;

class UserService
{
    public function createUser(array $data): User
    {
        return User::create([
            'name' => $data['name'],
            'email' => $data['email'],
            'password' => Hash::make($data['password']),
        ]);
    }
}
```

### Routes
```php
Route::middleware('auth:sanctum')->group(function () {
    Route::apiResource('users', UserController::class);
});
```

## Best Practices

1. Use Eloquent relationships
2. Implement form requests for validation
3. Use service classes for business logic
4. Leverage Laravel queues
5. Implement proper authentication
6. Use middleware for cross-cutting concerns
7. Write feature and unit tests
8. Use Laravel best practices

## Resources
- https://laravel.com/docs

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.