Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

laravel has many deep

class User extends Model {
    use StaudenmeirEloquentHasManyDeepHasRelationships;

    public function cards() {
        return $this->hasManyDeep(Card::class, [Subject::class, Deck::class]);
    }
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #laravel #deep
ADD COMMENT
Topic
Name
8+3 =