Skip to content

Commit

Permalink
fix fascade
Browse files Browse the repository at this point in the history
  • Loading branch information
ExpDev07 committed Mar 25, 2022
1 parent e46a2eb commit 5be9fa6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/Facades/Logsnag.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class Logsnag extends Facade
*/
protected static function getFacadeAccessor(): string
{
return 'laravel-logsnag';
return \ExpDev07\Logsnag\Logsnag::class;
}

}
4 changes: 4 additions & 0 deletions src/LogsnagServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,13 @@ public function configurePackage(Package $package): void
*/
protected function registerContainerBindings(): void
{
// Bind the Logsnag client.
$this->app->instance(LogsnagClient::class, new LogsnagClient(
token: config('logsnag.token', ''),
));

// Bind the Logsnag.
$this->app->instance(Logsnag::class, new Logsnag());
}

}

0 comments on commit 5be9fa6

Please sign in to comment.