laravel-packages

Guide Laravel package creation with best practices and Spatie tools.

1|Updated May 24, 2026
One-click install
npx skills add https://github.com/PTKDrake/FIT-vmu --skill laravel-packages-ptkdrake
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: laravel-packages
Source: https://github.com/PTKDrake/FIT-vmu/tree/main/.agents/skills/laravel-packages
Command: npx skills add https://github.com/PTKDrake/FIT-vmu --skill laravel-packages-ptkdrake

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires spatie/laravel-data, spatie/laravel-model-states, spatie/laravel-query-builder, saloonphp/saloon, saloonphp/laravel-plugin, pestphp/pest, pestphp/pest-plugin-laravel, laravel/sanctum, stancl/tenancy, spatie/laravel-settings, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill addresses the challenge of developing and managing Laravel packages by providing a structured approach, best practices, and essential tools, ensuring a more efficient and maintainable package development process.

Core Features & Use Cases

  • Package Development: Offers guidelines for creating, extracting, and modifying Composer packages.
  • Best Practices: Provides a comprehensive guide on when and how to extract code into packages, package structure, and versioning.
  • Tools Integration: Integrates essential tools like Spatie Laravel Data, Model States, Query Builder, and more.
  • Use Case: For a developer looking to organize and reuse code across multiple Laravel projects, this Skill can help streamline the process of creating custom packages.

Quick Start

Use the laravel-packages skill to learn how to create a new Laravel package following best practices.

Frequently Asked Questions about laravel-packages

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

FAQPage Schema
How do I extract code into a Laravel package for reuse across projects?

To extract code into a Laravel package, you should follow structured guidelines for package creation, determining when to extract code, and organizing the package structure for maintainability. This ensures efficient code reuse across multiple projects.

What are the best practices for Laravel package development and versioning?

Laravel package development best practices involve structuring your package correctly, integrating essential tools like Spatie packages, and applying proper versioning strategies to maintain stability across projects.

How does Spatie Laravel Data integrate with custom Laravel packages?

Spatie Laravel Data integrates into custom Laravel packages by providing structured data transfer objects, streamlining data handling and tool integration within your package development workflow for better code organization.

Can I use Saloon and Pest together when developing Laravel packages?

Yes, you can use Saloon for API integration and Pest for testing within your Laravel package development. Integrating these tools ensures your package handles external requests and maintains robust test coverage efficiently.

When should I extract functionality into a Composer package instead of keeping it in the main Laravel project?

You should extract functionality into a Composer package when you need to organize and reuse code across multiple Laravel projects. This approach prevents duplication and streamlines maintenance by isolating shared logic.