File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 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
7878 * @var Model $this
7979 */
8080 return $ this ->hasMany (
81- config ('favorite .followables_model ' , \Overtrue \LaravelFollow \Followable::class),
81+ config ('follow .followables_model ' , \Overtrue \LaravelFollow \Followable::class),
8282 'followable_id ' ,
8383 )->where ('followable_type ' , $ this ->getMorphClass ());
8484 }
@@ -89,7 +89,7 @@ public function followers(): BelongsToMany
8989 config ('auth.providers.users.model ' ),
9090 config ('follow.followables_table ' , 'followables ' ),
9191 'followable_id ' ,
92- config ('favorite .user_foreign_key ' , 'user_id ' )
92+ config ('follow .user_foreign_key ' , 'user_id ' )
9393 )->where ('followable_type ' , $ this ->getMorphClass ())
9494 ->withPivot (['accepted_at ' ]);
9595 }
Original file line number Diff line number Diff line change @@ -104,8 +104,8 @@ public function followings(): HasMany
104104 * @var Model $this
105105 */
106106 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 ' ),
109109 $ this ->getKeyName ()
110110 );
111111 }
You can’t perform that action at this time.
0 commit comments