On January 15, 2021 . By CodimTh Category: Web Laravel Laravel where on relationship object Example How to make conditions on relationships in Laravel: Event::whereHas('users', function ($query) { return $query->where('user_id', '=', 1); })->get(); Tags : Laravel Laravel tutoriel Tips Laravel Previous PostHow to change value of a request parameter in laravelNext PostLaravel Eloquent Query Using WHERE with OR AND OR Comments Add new comment Your name Subject Comment About text formats Restricted HTML Leave this field blank
Comments