diff --git a/composer.json b/composer.json index 8f61cfd..335e0bd 100644 --- a/composer.json +++ b/composer.json @@ -26,5 +26,15 @@ }, "require-dev": { "phpunit/phpunit": "^5.2" + }, + "extra": { + "laravel": { + "providers": [ + "Junaidnasir\\Larainvite\\LaraInviteServiceProvider" + ], + "aliases": { + "Invite": "Junaidnasir\\Larainvite\\Facades\\Invite" + } + } } } diff --git a/src/LaraInviteServiceProvider.php b/src/LaraInviteServiceProvider.php index daa5fa5..e974834 100644 --- a/src/LaraInviteServiceProvider.php +++ b/src/LaraInviteServiceProvider.php @@ -28,11 +28,15 @@ public function boot() */ public function register() { - $this->mergeConfigFrom(__DIR__.'/Config/larainvite.php', 'larainvite'); $this->app->singleton('invite', function ($app) { $laravelImplementation = new \Junaidnasir\Larainvite\LaraInvite(); return new \Junaidnasir\Larainvite\UserInvitation($laravelImplementation); }); } + + public function provides() + { + return ['invite']; + } }