🔥 Laravel Tip: Disable mass assignable restrictions for all models
Sep 26, 2022
For the longest time, the first thing I did after creating my models is disable the guarded fields by setting `$guarded` to an empty array
Until I found out you can disable it globally in your service provider
Until I found out you can disable it globally in your service provider
Other tips:
🔥 Laravel Tip: the wasChanged method
Apr 8, 2022