Skip to content

Commit

Permalink
insert route
Browse files Browse the repository at this point in the history
  • Loading branch information
noemimpimentel committed Dec 11, 2023
1 parent a567d81 commit 34d8343
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/IssJuridicoServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ public function configurePackage(Package $package): void
* More info: https://github.com/spatie/laravel-package-tools
*/
$package->name('iss-juridico')
->hasConfigFile();
->hasConfigFile()
->hasRoute('api');
//->hasViews()
//->hasMigration('create_iss-juridico_table')
//->hasCommand(IssJuridicoCommand::class);
Expand All @@ -25,7 +26,7 @@ public function configurePackage(Package $package): void
public function register(): void
{
parent::register();

$this->app->singleton('iss-juridico', fn ($app, $args) => new IssJuridico($args[0] ?? request()->bearerToken()));
}

Expand Down

0 comments on commit 34d8343

Please sign in to comment.