Why does passing an instance of IlluminateHttpUploadedFile to a custom cast result in an infinite loop?
I have a Configuration model in which I have implemented a custom cast, the getter works perfectly but let’s look at the setter.
How to filter records based on existing records on other Models in Laravel (Implement user blocking)
I have a User
model and a Blocklist
model, Now when I call User::all()
I only want to return Users who are not related based on records in the block list table.