Skip to content
Back to skills

Laravel Providers

ASecurity

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.

  • 666 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added February 9, 2026
toolsphpgit

Security analysis

A100/100

Scanned February 12, 2026

npx -y skills add majiayu000/claude-skill-registry --skill laravel-providers --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Laravel Providers?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Laravel Providers
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/majiayu000-laravel-providers/badge)](https://www.skillsdirectory.com/skills/majiayu000-laravel-providers)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: laravel-providers
description: 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.
---

# Laravel Providers

Service providers and application bootstrapping patterns.

## Core Concepts

**[service-providers.md](references/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](references/bootstrap-booters.md)** - Bootstrap & Booters:
- Invokable booter classes
- Middleware registration
- Exception handling setup
- Scheduling configuration
- Clean bootstrap organization

**[environment.md](references/environment.md)** - Environment config:
- Template and instance pattern
- `.env-local` templates
- Git-ignored instances
- Optional git-crypt for secrets

**[helpers.md](references/helpers.md)** - Helper functions:
- Global helper registration
- Autoloading helpers
- When to use (sparingly)
- Alternatives with static methods

## Pattern

```php
// 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.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.