Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

laravel eloquent join two models

Event::whereHas('participants', function ($query) {
    return $query->where('IDUser', '=', 1);
})->get();
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #laravel #eloquent #join #models
ADD COMMENT
Topic
Name
3+2 =