Skip to content

Commit c91aa48

Browse files
authored
Merge pull request #175 from ahmedesa/fix_get_from_config_file
2 parents ce6cf9e + b21b8fb commit c91aa48

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/Traits/Followable.php

+2-2
Original file line numberDiff line numberDiff 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
}

src/Traits/Follower.php

+2-2
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)