Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
noemimpimentel committed Dec 11, 2023
1 parent 943cb2e commit 6242beb
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions src/IssJuridicoServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,6 @@

class IssJuridicoServiceProvider extends PackageServiceProvider
{
public function register(): void
{
$this->app->singleton('iss-juridico', fn ($app, $args) => new IssJuridico($args[0] ?? request()->bearerToken()));
}

public function configurePackage(Package $package): void
{
/*
Expand All @@ -27,12 +22,9 @@ public function configurePackage(Package $package): void
//->hasCommand(IssJuridicoCommand::class);
}

public function packageBooted()
public function register(): void
{
if ($this->package->hasRoute('api')) {
$this->loadRoutesFrom(__DIR__.'/../routes/api.php');
}
$this->app->singleton('iss-juridico', fn ($app, $args) => new IssJuridico($args[0] ?? request()->bearerToken()));
}


}

0 comments on commit 6242beb

Please sign in to comment.