hootlex / laravel-friendships

This package gives Eloquent models the ability to manage their friendships.
MIT License
703 stars 151 forks source link

Installation issue on L5.6 #103

Open AEK-BKF opened 6 years ago

AEK-BKF commented 6 years ago

Hi, Thanks for this nice package,

I tried to install the package, but : php artisan vendor:publish --provider="Hootlex\Friendships\FriendshipsServiceProvider" doesn't work ! So I copy config and migration files manually, and I had to rename the friendship creation table before the group one. I works fine ! Try to fix it :)

stephane-monnot commented 6 years ago

Have you included the service provider inside config/app.php.

'providers' => [
    ...
    Hootlex\Friendships\FriendshipsServiceProvider::class,
    ...
];
AEK-BKF commented 6 years ago

AH ok! I thought no need for that because I'm using Laravel 5.6.20 ! Thanks :)

stephane-monnot commented 6 years ago

I made a pull request to add auto discovery 1 hour ago (Auto discovery PR). I think @hootlex will review soon.

if you want to check if a package is "auto-discovery ready", you can check the composer.json. It's "auto-discovery ready" if you can see :

"extra": {
        "laravel": {
            "providers": [
                "Namespace\\Of\\PackageServiceProvider"
            ]
        }
    },