File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -78,7 +78,7 @@ public function followables(): HasMany
78
78
* @var Model $this
79
79
*/
80
80
return $ this ->hasMany (
81
- config ('favorite .followables_model ' , \Overtrue \LaravelFollow \Followable::class),
81
+ config ('follow .followables_model ' , \Overtrue \LaravelFollow \Followable::class),
82
82
'followable_id ' ,
83
83
)->where ('followable_type ' , $ this ->getMorphClass ());
84
84
}
@@ -89,7 +89,7 @@ public function followers(): BelongsToMany
89
89
config ('auth.providers.users.model ' ),
90
90
config ('follow.followables_table ' , 'followables ' ),
91
91
'followable_id ' ,
92
- config ('favorite .user_foreign_key ' , 'user_id ' )
92
+ config ('follow .user_foreign_key ' , 'user_id ' )
93
93
)->where ('followable_type ' , $ this ->getMorphClass ())
94
94
->withPivot (['accepted_at ' ]);
95
95
}
Original file line number Diff line number Diff line change @@ -104,8 +104,8 @@ public function followings(): HasMany
104
104
* @var Model $this
105
105
*/
106
106
return $ this ->hasMany (
107
- config ('favorite .followables_model ' , \Overtrue \LaravelFollow \Followable::class),
108
- config ('favorite .user_foreign_key ' , 'user_id ' ),
107
+ config ('follow .followables_model ' , \Overtrue \LaravelFollow \Followable::class),
108
+ config ('follow .user_foreign_key ' , 'user_id ' ),
109
109
$ this ->getKeyName ()
110
110
);
111
111
}
You can’t perform that action at this time.
0 commit comments