laravel-providers

Service providers, bootstrapping, and application configuration. Use when working with service providers, app configuration, bootstrapping, or when user mentions service providers, AppServiceProvider, bootstrap, booters, configuration, helpers.

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "laravel-providers" with this command: npx skills add leeovery/claude-laravel/leeovery-claude-laravel-laravel-providers

Laravel Providers

Service providers and application bootstrapping patterns.

Core Concepts

service-providers.md - Service providers:

  • AppServiceProvider organization with named methods
  • Model::unguard() for mass assignment
  • Factory resolver for Data classes
  • Morph map registration
  • Configuration patterns

bootstrap-booters.md - Bootstrap & Booters:

  • Invokable booter classes
  • Middleware registration
  • Exception handling setup
  • Scheduling configuration
  • Clean bootstrap organization

environment.md - Environment config:

  • Template and instance pattern
  • .env-local templates
  • Git-ignored instances
  • Optional git-crypt for secrets

helpers.md - Helper functions:

  • Global helper registration
  • Autoloading helpers
  • When to use (sparingly)
  • Alternatives with static methods

Pattern

// AppServiceProvider
final class AppServiceProvider extends ServiceProvider
{
    public function boot(): void
    {
        $this->configureMorphMap();
        $this->configureDataFactories();
        Model::unguard();
    }

    private function configureMorphMap(): void
    {
        Relation::morphMap([
            'order' => Order::class,
            'product' => Product::class,
        ]);
    }
}

Organize AppServiceProvider with named private methods for clarity.

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

laravel-testing

No summary provided by upstream source.

Repository SourceNeeds Review
General

laravel-quality

No summary provided by upstream source.

Repository SourceNeeds Review
General

laravel-architecture

No summary provided by upstream source.

Repository SourceNeeds Review
General

laravel-multi-tenancy

No summary provided by upstream source.

Repository SourceNeeds Review