Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

laravel has many deep

//AppUser;

public function cards()
{
    Card::whereHas('decks', function($q){
         return $q->whereHas('subjects', function($q){
            return $q->where('user_id', $this->id);
        });
    });
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #laravel #deep
ADD COMMENT
Topic
Name
2+9 =