diff --git a/src/Facades/LookingGlass.php b/src/Facades/LookingGlass.php index a4274f3..ee62219 100644 --- a/src/Facades/LookingGlass.php +++ b/src/Facades/LookingGlass.php @@ -6,6 +6,7 @@ /** * @see \Cxj\LookingGlass\LookingGlass + * @method transmit */ class LookingGlass extends Facade { diff --git a/src/LookingGlass.php b/src/LookingGlass.php index 0262dec..cfb1d1d 100755 --- a/src/LookingGlass.php +++ b/src/LookingGlass.php @@ -9,7 +9,7 @@ class LookingGlass public function transmit(Result $result): void { // Send this status to Looking Glass. - WebhookCall::send() + WebhookCall::create() ->url(config('looking-glass.url')) ->payload( [ diff --git a/src/ServiceProvider.php b/src/ServiceProvider.php index 41aa511..ffa5613 100644 --- a/src/ServiceProvider.php +++ b/src/ServiceProvider.php @@ -22,22 +22,23 @@ public function configurePackage(Package $package): void * More info: https://github.com/spatie/laravel-package-tools */ $package - ->name('laravel-looking-glass-client') -// ->name('laravel-looking-glass') + ->name('laravel-looking-glass-client') ->hasConfigFile('looking-glass') ->hasCommand(LookingGlassCommand::class) ->hasInstallCommand(function (InstallCommand $command) { $command ->startWith(function (InstallCommand $command) { $command->info('Imagine this actually working...'); - }) + }) // Does not work, Spatie?! ->publishConfigFile() ->publishMigrations() ->askToRunMigrations() - ->askToStarRepoOnGitHub('cxj/laravel-looking-glass-client') + ->askToStarRepoOnGitHub( + 'cxj/laravel-looking-glass-client' + ) // Does not work, Spatie?! ->endWith(function (InstallCommand $command) { $command->info('Have a great day!'); - }); + }); // Does not work, Spatie?! }); }