petritr
1 year ago

show results where boolean is equal to

Posted 1 year ago by petritr

I have the following, it's not working quite well:

 Client::findOrFail($id)->where('disabled_client', '=', '0')->first();

This statement should display only the id's where disabled_client is equal to 0: As it is now will display all results. What im missing ?

Please sign in or create an account to participate in this conversation.