laravel-specialist

Build and configure Laravel 10+ applications with Eloquent models, authentication, queues, and APIs.

Updated Sep 25, 2025
One-click install
npx skills add https://github.com/angelgarciasolorzano/social-hub --skill laravel-specialist-angelgarciasolorzano
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: laravel-specialist
Source: https://github.com/angelgarciasolorzano/social-hub/tree/main/.agents/skills/laravel-specialist
Command: npx skills add https://github.com/angelgarciasolorzano/social-hub --skill laravel-specialist-angelgarciasolorzano

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires laravel, eloquent, sanctum, horizon, livewire, pest, phpunit, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill provides comprehensive support for building and managing Laravel applications, streamlining the development process and ensuring best practices are followed.

Core Features & Use Cases

  • Application Setup: Create and configure Laravel 10+ applications from scratch.
  • Model & Relationship Creation: Implement Eloquent models and relationships, including eager loading and scope optimization.
  • Authentication & Authorization: Implement Sanctum authentication and role-based access control.
  • Queue Management: Configure Horizon queues for background processing and task scheduling.
  • API Development: Design and build RESTful APIs with API resources and Livewire components for reactive interfaces.
  • Testing: Write and run Pest/PHPUnit tests for Laravel features and functionality.
  • Use Case: If you are a developer working on a Laravel project and need to implement a new model, set up authentication, or create an API endpoint, this Skill can guide you through the process.

Quick Start

Use the laravel-specialist skill to create a new Laravel model with relationships and authentication.

Frequently Asked Questions about laravel-specialist

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I set up Sanctum authentication and role-based access control in a Laravel application?

To set up Sanctum authentication in Laravel, you configure the authentication scaffolding and define role-based access control middleware. This secures your application routes and API endpoints by validating user tokens and permissions.

What is the best way to configure Horizon queues for background processing in Laravel?

Configuring Horizon queues in Laravel involves installing the Horizon package and defining queue configurations for task scheduling. This enables efficient background processing and monitoring of queued jobs across your application.

Can I build reactive interfaces and RESTful APIs using Livewire components in Laravel 10+?

Yes, you can build reactive interfaces and RESTful APIs in Laravel 10+ using Livewire components alongside API resources. This combination allows you to create dynamic user interfaces and structured data responses for your web application.

Do I need PHP 8.2+ to create Eloquent models and database migrations in Laravel?

Yes, you need PHP 8.2+ to create Eloquent models and database migrations in Laravel 10+. This version requirement ensures compatibility with the framework's latest features and optimal performance for application development.

How do I write and run Pest or PHPUnit tests for Laravel features and functionality?

You write and run Pest or PHPUnit tests for Laravel features by defining test cases that simulate HTTP requests and database interactions. Executing these tests validates your application's functionality and ensures code reliability.

How does eager loading and scope optimization work when implementing Eloquent relationships?

Eager loading and scope optimization in Eloquent relationships work by querying related models upfront and defining reusable query constraints. This mechanism prevents the N+1 query problem and streamlines database access in Laravel applications.