🔥 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
![tip-image-0](https://res.cloudinary.com/dpmeu3otn/image/upload/v1666557453/tips/idrs8nkwuj7g6abvdx2p.jpg)
Other tips:
🔥 Laravel Tip: Merging eloquent collections
Sep 9, 2022