Skip to main content

All Tutorials

In-depth Laravel tutorials covering advanced topics, real-world examples, and best practices.

Tutorial Free

PHP Attributes in Laravel 13: The Ultimate Guide (36 New Attributes!)

New Laravel 13 went all-in on PHP attributes. Properties like `$fillable`, `$guarded`, and `$hidden` that you've been defining on models for years can now be declared as class-level attributes: `#[Fillable]`, `#[Guarded]`, and `#[Hidden]`. The same applies to job configuration, console command signatures, middleware, and more.

We'd Love Your Feedback

Tell us what you like or what we can improve

Feel free to share anything you like or dislike about this page or the platform in general.