Just saw @peterfox working on Laravel 13 attribute refactor support for Laravel Rector, so you'll be able to migrate to attributes easily after release. 💪
Punyapal Shah ⚡
@MrPunyapal
Laravel Artisan | Open Source Contributor | Speaker | Core Team @Pinkary 🤌 Creator of @LaravelArtisans 🙌
• • 2K Posts • 19K Views
Laravel devs — how do you handle mass assignment in Eloquent?
Use $fillable (explicit allow)
Use $guarded (except id, etc.)
Model::unguarded() globally
Laravel 13 got one more new attribute: `#[Authorize] `👀
I have mixed feelings about other attributes, but this one I like.
Authorization feels cleaner, more structured, and easier to reason about.
This is a good addition 👍
Recently, I used IDM to download something quickly, and it felt nostalgic; it reminded me of my college days.
Do you still use it? 😅