- Home
- Skills
- APIs & Backend
- Laravel Studio
Laravel Studio
Expert Laravel engineering for architecture, Eloquent optimization, Filament, and secure API design.
$10
Works with the AI Agents you already use
Laravel Studio
Example session with this skill installed
Create a new feature to handle user profile updates including an avatar upload, ensuring it uses a Form Request and a dedicated Action class.
- Read your context and instructions
- Compiled the laravel studio
I will implement a profile update feature using a dedicated UpdateUserProfile Action and a ProfileUpdateRequest to handle validation and file storage.
User Profile Update Implementation
// app/Http/Requests/ProfileUpdateRequest.php
<?php
declare(strict_types=1);
namespace App\Http\Requests;
use Illuminate\Foundation\Http\FormRequest;
use Illuminate\Validation\Rule;
class ProfileUpdateRequest extends FormRequest
{
public function authorize(): bool
{
return true;
}
public function rules(): array
{
return [
'name' => ['required', 'string', 'max:255'],
'email' => ['required', 'email', 'max:255', Rule::unique('users')->ignore($this->user()->id)],
'avatar' => ['nullable', 'image', 'max:2048'],
];
}
}
// app/Actions/UpdateUserProfile.php
<?php
declare(strict_types=1);
namespace App\Actions;
use App\Models\User;
use Illuminate\Support\Facades\Storage;
class UpdateUserProfile
{
public function handle(User $user, array $data): User
{
if (isset($data['avatar'])) {
if ($user->avatar_path) {
Storage::disk('public')->delete($user->avatar_path);
}
$data['avatar_path'] = $data['avatar']->store('avatars', 'public');
}
$user->update(collect($data)->except('avatar')->toArray());
return $user;
}
}
Artisan Commands:
php artisan make:request ProfileUpdateRequest
php artisan storage:link
Verified with:
Static analysis via Larastan confirmed type safety for the Action class.
Watch out for:
Security: Ensure the public disk is properly configured to prevent unauthorized access to other storage directories.
- Optimization: If updating profiles frequently, consider processing avatar resizing via a queued Job.
- Authorization: Ensure the route is protected by
authmiddleware.
Next steps
- Add a Pest test to verify the avatar upload and old file deletion.
- Update the User model to include
avatar_pathin the$fillablearray.
Connects securely to your tools. The creator never sees your data.
About this skill
Building a Laravel application requires more than just knowing PHP. It demands a deep understanding of service containers, Eloquent optimization, and framework-specific security patterns. This skill provides senior-level engineering expertise to ensure your Laravel builds are idiomatic, performant, and maintainable.
What it does
- Architects systems using DTOs, actions, and service patterns to keep logic out of controllers.
- Optimizes databases by fixing N+1 issues, implementing eager loading, and managing complex Eloquent relationships.
- Secures APIs with Sanctum or Fortify auth, implementing robust RBAC through policies and gates.
- Manages frontend integration across Livewire, Inertia (Vue/React), and Blade with Vite.
- Automates testing using Pest or PHPUnit, including model factories and mocking for high coverage.
- Configures infrastructure for Redis/Horizon queues, Task Scheduling, and deployment via Forge or Docker.
How it works
- Analyze environment: The skill reads
composer.jsonto match your specific Laravel and PHP versions. - Consult references: It checks internal documentation for specific domains like payments, realtime Reverb, or Filament admin panels.
- Execute workflow: It uses Artisan generators to maintain framework conventions for models, migrations, and requests.
- Quality gate: It validates output by running Pint for styling, Larastan for static analysis, and Pest for functional verification.
Frameworks & tools
This skill is built for the Laravel ecosystem, including Eloquent, Sanctum, Fortify, Horizon, Cashier, Reverb, and Filament. It supports testing via Pest and PHPUnit, and frontend stacks including Livewire, Inertia, and Tailwind CSS.
Why this beats prompting it yourself
Generic prompts often result in bloated controllers or insecure $guarded = [] models. This skill enforces strict architectural boundaries, mandatory authorization, and prevents common pitfalls like env() calls outside of config files that break production caching.
Use cases
- Refactoring legacy PHP into a modern Laravel service-action architecture.
- Building a multi-tenant SaaS with isolated data and subscription billing via Cashier.
- Designing a high-performance REST API with versioned resources and form request validation.
- Implementing a real-time dashboard using Reverb websockets and Filament widgets.
Known limitations
Does not support editing already deployed migrations. Requires manual verification of environment secrets as it will not commit .env files.
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for APIs & Backend.
Cannot edit already deployed migrations. Will not generate code using unverified third-party packages. Requires existing PHP/Laravel environment for script-based quality checks.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Money-back guarantee
Doesn't do what its page promises? You get your money back.
Trust & safety
Security scan
Security scan passed today