laravel-specialist

Implement Eloquent models, API resources, queues, and Livewire components for Laravel 10+ applications.

1|Updated Oct 16, 2024
One-click install
npx skills add https://github.com/CDavidDv/realplateros --skill laravel-specialist-cdaviddv
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: laravel-specialist
Source: https://github.com/CDavidDv/realplateros/tree/main/.agents/skills/laravel-specialist
Command: npx skills add https://github.com/CDavidDv/realplateros --skill laravel-specialist-cdaviddv

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides expert-level assistance for developing complex Laravel applications, ensuring adherence to best practices and efficient implementation of advanced features.

Core Features & Use Cases

  • Eloquent ORM: Implement models, relationships, scopes, and optimize queries.
  • API Development: Build RESTful APIs using API Resources and Form Requests.
  • Queue Systems: Set up and manage background jobs for asynchronous processing.
  • Livewire Components: Create dynamic, reactive interfaces.
  • Testing: Write comprehensive unit and feature tests.
  • Use Case: Develop a new feature for an e-commerce platform, including Eloquent models for products and orders, an API endpoint to fetch product details, and a background job to process new orders.

Quick Start

Use the laravel-specialist skill to create a new Eloquent model for a 'Product' with 'name', 'description', and 'price' fields, including a migration.

Frequently Asked Questions about laravel-specialist

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

FAQPage Schema
How do I optimize Eloquent queries for complex relationships in Laravel?

To optimize Eloquent queries in Laravel, you should implement eager loading to prevent the N+1 problem, utilize query scopes for reusable conditions, and define precise model relationships. This approach ensures efficient database interactions and reduces query execution time.

What's the best way to set up Laravel queue systems for asynchronous processing?

Setting up Laravel queue systems involves configuring background jobs to handle asynchronous processing. You can dispatch tasks to queues for time-consuming operations like order processing, keeping your application responsive and improving overall throughput.

How do I build RESTful APIs in Laravel using API Resources and Form Requests?

Building RESTful APIs in Laravel involves using API Resources to transform models into JSON responses and Form Requests to handle validation and authorization. This method structures your API output and ensures incoming requests meet strict validation rules.

Can I use Livewire components to create dynamic interfaces without writing JavaScript?

Yes, you can create dynamic, reactive interfaces using Livewire components in Laravel. Livewire allows you to build interactive UIs by writing PHP code, managing state updates and rendering dynamically without requiring custom JavaScript.