Closed Baspa closed 5 years ago
If you have published the config files using :
php artisan vendor:publish --provider="Hootlex\Friendships\FriendshipsServiceProvider"
Go to config/friendships.php
and see if it matches this -
<?php
return [
'tables' => [
'fr_pivot' => 'friendships',
'fr_groups_pivot' => 'user_friendship_groups'
],
'groups' => [
'acquaintances' => 0,
'close_friends' => 1,
'family' => 2
]
];
If its the same then clear your config & compiled files by running php artisan config:clear
and php artisan clear-compiled
in your console and then run your migration again.
If it still doesn't work, go to bootrap/cache/
folder and delete all files inside that folder, restart the server and try again.
-TT
Running config:clear and clear-compiled worked. Thanks for you fast reply.
I followed these steps:
When I try to migrate the database I get the following error:
Maybe I did something wrong by not following this step:
But I don't know what is meant with configure the published config? What do I have to config here? I didn't create the migrations myself like this person did here: https://github.com/hootlex/laravel-friendships/issues/94