Laravel Community Tools by
Tighten
Laravel Versions
PHP Releases
Nova Packages
Laravel Tricks
Forge Recipes
Toggle navigation
Log in
Log in
berto309
Joined:
5 years ago
Total tricks:
1
Last trick:
5 years ago
Submitted tricks
Eloquent
Unguard Models
You can unguard all your Models instead of setting the protected guarded variable to an empty array in each App\Models\YourModel class using Model::unguard() in the boot method of AppServiceProvider class.
berto309
5 years ago
24198
models
eloquent