Answer the question
In order to leave comments, you need to log in
How to display only users with visible==true on any request?
There is a User model with the visible parameter when the user is deleted, it changes to false and this condition is added to all requests visible != false.
Answer the question
In order to leave comments, you need to log in
https://laravel.com/docs/5.5/eloquent#global-scopes
https://laravel.com/docs/5.5/eloquent#soft-deleting
You make a request with the condition visible == true and display this list as an option.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question