Saltar al contenido
← Volver a proyectos

Laravel Attributes List

List of All available PHP attributes in Laravel framework.

#Laravel PHP Attributes List

A curated list of PHP Attributes available in Laravel Framework.


#Install the skill

  • Boost (recommended):
php artisan boost:add-skill MrPunyapal/laravel-attributes-list --skill laravel-attributes
  • NPX
npx skills add MrPunyapal/laravel-attributes-list --skill laravel-attributes

#📊 Eloquent (Models)


#📦 Queue (Jobs / Listeners / Notifications / Mailables)


#⚙️ Console (Artisan Commands)


#🎛️ Controllers


#🧪 Form Requests


#🌱 Testing

  • #[Seeder] — Run a specific seeder class during tests
  • #[Seed] — Run the database seeder during tests
  • #[SetUp] — Mark a trait method as a test setup hook
  • #[TearDown] — Mark a trait method as a test teardown hook
  • #[UnitTest] — Skip framework boot for individual test methods

#🏭 Factories


#📡 API Resources


#🔌 Dependency Injection

  • #[Auth] — Inject an auth guard instance
  • #[Authenticated] — Inject the currently authenticated user
  • #[Bind] — Contextually bind to a specific implementation
  • #[BindWhen] — Conditionally bind to a specific implementation
  • #[Cache] — Inject a cache store instance
  • #[Config] — Inject a configuration value
  • #[Context] — Inject a value from the application context
  • #[CurrentUser] — Inject the currently authenticated user model
  • #[DB] — Inject a database connection instance
  • #[Database] — Inject a named database connection
  • #[Give] — Give a specific binding contextually
  • #[Log] — Inject a logger with a named channel
  • #[RequestAttribute] — Inject a value from the request's attributes collection
  • #[RouteParameter] — Inject a route parameter value
  • #[Scoped] — Register a class as a scoped singleton in the container
  • #[Singleton] — Register a class as a singleton in the container
  • #[Storage] — Inject a storage disk instance
  • #[Tag] — Inject all bindings tagged with a given tag

#🤖 AI (Agents)


#🧠 Notes

  • Attributes provide an alternative to traditional class properties
  • They are used across multiple parts of the framework
  • Existing approaches (properties, methods) continue to work

#🐘 PHP Built-in Attributes


#🤝 Contributing

Contributions are welcome.


#👤 Author

@MrPunyapal


Nueva versión disponible.