Skip to content

Commit

Permalink
Tweaks and bug fix on WebhookCall method name.
Browse files Browse the repository at this point in the history
  • Loading branch information
cxj committed Mar 5, 2023
1 parent 7773619 commit 4c9a0d0
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
1 change: 1 addition & 0 deletions src/Facades/LookingGlass.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

/**
* @see \Cxj\LookingGlass\LookingGlass
* @method transmit
*/
class LookingGlass extends Facade
{
Expand Down
2 changes: 1 addition & 1 deletion src/LookingGlass.php
Original file line number Diff line number Diff line change
Expand Up @@ -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(
[
Expand Down
11 changes: 6 additions & 5 deletions src/ServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -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?!
});
}

Expand Down

0 comments on commit 4c9a0d0

Please sign in to comment.