How to automatically apply some conditions on a model in its class using Laravel Eloquent?
I want to apply some conditions on my models (after retrieving from the database), I found this approach but it has a problem that is for before getting relations and the model has no relations but I want them. public…