Skip to content
Projets

MrPunyapal/laravel-attributes-list

Voir sur GitHub

À propos

List of All available PHP attributes in Laravel framework.

Développement web et applicatif

Comment ces chiffres sont mesurés

Progression mesurée des étoiles

in 24h
0
in 7 days
+1
in 15 days
+1
in 1 month
Historique en cours

Variations nettes sur des périodes qui se chevauchent, pas des totaux quotidiens. Les mesures absentes restent vides. Les étoiles indiquent l’intérêt, pas la qualité.

README.md

Original

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


🏭 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


Explorer des projets similaires

Chargement…