Laravel PHP Attributes List
A curated list of PHP Attributes available in Laravel Framework.
- TableDefine database table
- FillableDefine mass assignable attributes
- GuardedDefine guarded attributes
- HiddenHide attributes from serialization
- VisibleDefine visible attributes
- AppendsAppend accessors to arrays
- TouchesTouch related models
- ConnectionSpecify database connection
- UnguardedDisable mass assignment protection
- CollectedByCustom collection class
- WithoutTimestampsDisable timestamps
- WithoutIncrementingDisable auto-incrementing IDs
- ScopedByApply global scope(s) to the model
- ObservedByRegister model observer(s)
- DateFormatDefine the date format for model timestamps
- ScopeMark a method as a local query scope
- BootMark a trait method as a model boot hook
- InitializeMark a trait method as a model initialize hook
- UseEloquentBuilderSpecify a custom Eloquent builder class
- UseFactorySpecify the factory class for the model
- UsePolicySpecify the policy class for the model
- UseResourceSpecify the API resource for the model
- UseResourceCollectionSpecify the resource collection for the model
- ConnectionDefine queue connection
- QueueDefine queue name
- DelayDelay execution
- BackoffConfigure retry delay
- TriesMaximum retry attempts
- TimeoutJob timeout duration
- UniqueForUnique job duration
- DeleteWhenMissingModelsDelete if models are missing
- FailOnTimeoutMark job as failed on timeout
- MaxExceptionsMaximum exception attempts
- WithoutRelationsIgnore relations during serialization
- DebounceForDebounce job execution for a given duration
- SignatureDefine command signature
- DescriptionDefine command description
- AliasesDefine command aliases
- UsageDefine additional command usage examples
- HelpDefine command help text
- HiddenHide command from the Artisan list
- MiddlewareAssign middleware to a controller class or action method
- AuthorizeAuthorize a controller action via the gate
- RedirectToDefine redirect path on validation failure
- RedirectToRouteDefine redirect route on validation failure
- StopOnFirstFailureStop validation on first failure
- ErrorBagDefine the error bag name
- FailOnUnknownFieldsFail if the request contains unknown fields
- SeederRun a specific seeder class during tests
- SeedRun the database seeder during tests
- SetUpMark a trait method as a test setup hook
- TearDownMark a trait method as a test teardown hook
- UnitTestSkip framework boot for individual test methods
- UseModelDefine model for factory
- CollectsDefine resource collection mapping
- PreserveKeysPreserve keys in resource output
- AuthInject an auth guard instance
- AuthenticatedInject the currently authenticated user
- BindContextually bind to a specific implementation
- CacheInject a cache store instance
- ConfigInject a configuration value
- ContextInject a value from the application context
- CurrentUserInject the currently authenticated user model
- DBInject a database connection instance
- DatabaseInject a named database connection
- GiveGive a specific binding contextually
- LogInject a logger with a named channel
- RouteParameterInject a route parameter value
- ScopedRegister a class as a scoped singleton in the container
- SingletonRegister a class as a singleton in the container
- StorageInject a storage disk instance
- TagInject all bindings tagged with a given tag
- MaxStepsMaximum number of steps the agent may take when using tools
- MaxTokensMaximum number of tokens the model may generate
- ModelDefine the model the agent should use
- ProviderDefine the AI provider (or providers for failover)
- TemperatureDefine the sampling temperature for generation
- TimeoutDefine the HTTP timeout in seconds for agent requests
- TopPDefine the top-p sampling threshold for generation
- UseCheapestModelUse the provider's cheapest text model
- UseSmartestModelUse the provider's most capable text model
- AttributeMark a class as a reusable custom attribute
- AllowDynamicPropertiesAllow dynamic properties on a class without deprecation notice
- DeprecatedMark a function, method, class, or constant as deprecated
- NoDiscardWarn when a function's return value is discarded
- OverrideAssert that a method or property overrides a parent declaration
- ReturnTypeWillChangeSilence return type deprecation notice for cross-version compatibility
- SensitiveParameterRedact a parameter value from stack traces