🔥 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 `isDirty` method
Jan 28, 2022
🔥 Laravel Tip: Collections higher-order messages
Feb 23, 2022