CopyPastor

Detecting plagiarism made easy.

Score: 0.9699730496283316; Reported for: String similarity Open both answers

Possible Plagiarism

Reposted on 2018-07-07
by Jonas Staudenmeir

Original Post

Original - Posted on 2018-06-29
by Jonas Staudenmeir



            
Present in both answers; Present only in the new answer; Present only in the old answer;

I created a `HasManyThrough` relationship with unlimited levels: [Repository on GitHub][1]
After the installation, you can use it like this:
<!-- language-all: php -->
class User extends Model { use \Staudenmeir\EloquentHasManyDeep\HasRelationships; public function cards() { return $this->hasManyDeep(Card::class, [Subject::class, Deck::class]); } }
[1]: https://github.com/staudenmeir/eloquent-has-many-deep
I created a `HasManyThrough` relationship with unlimited levels: [Repository on GitHub][1]
After the installation, you can use it like this:
<!-- language-all: php -->
class User extends Model { use \Staudenmeir\EloquentHasManyDeep\HasRelationships; public function opportunities() { return $this->hasManyDeep(Opportunity::class, [Client::class, Store::class]); } }
[1]: https://github.com/staudenmeir/eloquent-has-many-deep

        
Present in both answers; Present only in the new answer; Present only in the old answer;