I am trying to add the following Where clause in a blade in laravel, but not working :
@if( Auth::user()->grpusers()
->where('group_id', $group->id)->first() == True)
->where('join_request', 1)->first() == True) // boolean
I'm also not sure if the boolean syntax is correct. If I remove the boolean line it works fine.