File tree Expand file tree Collapse file tree 2 files changed +1
-3
lines changed
src/Illuminate/Database/Eloquent
tests/Integration/Database Expand file tree Collapse file tree 2 files changed +1
-3
lines changed Original file line number Diff line number Diff line change 4
4
5
5
use BadMethodCallException ;
6
6
use Illuminate \Database \Eloquent \Relations \HasMany ;
7
- use Illuminate \Database \Eloquent \Relations \MorphMany ;
8
7
use Illuminate \Database \Eloquent \Relations \MorphOneOrMany ;
9
8
use Illuminate \Support \Str ;
10
9
@@ -66,7 +65,7 @@ public function has($callback)
66
65
$ distantRelation = $ callback ($ this ->localRelationship ->getRelated ());
67
66
68
67
if ($ distantRelation instanceof HasMany) {
69
- $ returnedRelation = $ this ->rootModel ->hasManyThrough (
68
+ $ returnedRelation = $ this ->rootModel ->hasManyThrough (
70
69
$ distantRelation ->getRelated ()::class,
71
70
$ this ->localRelationship ->getRelated ()::class,
72
71
$ this ->localRelationship ->getForeignKeyName (),
Original file line number Diff line number Diff line change @@ -31,7 +31,6 @@ protected function afterRefreshingDatabase()
31
31
$ table ->unsignedInteger ('comment_id ' );
32
32
});
33
33
34
-
35
34
$ post = tap (new Post (['public ' => true ]))->save ();
36
35
$ comment = tap ((new Comment )->commentable ()->associate ($ post ))->save ();
37
36
(new Like ())->comment ()->associate ($ comment )->save ();
You can’t perform that action at this time.
0 commit comments