🔥 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: Default Models
Apr 22, 2022
🔥 Small tip: foreach + range
Oct 15, 2022