Skip to content

Commit

Permalink
update srvc provider
Browse files Browse the repository at this point in the history
  • Loading branch information
BB committed Jun 12, 2024
1 parent 620e5fc commit 9c53103
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions src/QuotesBBServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,31 +19,30 @@ public function configurePackage(Package $package): void
*/
$package
->name('quotesbb')
->hasConfigFile()
->hasConfigFile('quotesbb')
->hasViews()
->hasCommand(QuotesBBCommand::class)
->hasInstallCommand(function(InstallCommand $command) {
->hasInstallCommand(function (InstallCommand $command) {
$command
->publishConfigFile()
->publishAssets()
->copyAndRegisterServiceProviderInApp()
->askToStarRepoOnGitHub('https://github.com/BataBoom/QuotesBB');
});

}

public function boot()
public function packageBooted()
{

// Register the Livewire component
Livewire::component('flash-quotes', \BataBoom\QuotesBB\Livewire\FlashQuotes::class);

// Publish the quotes resources
$this->publishes([
__DIR__.'/../resources/quotes' => public_path('bataboom/quotesbb'),
], 'public');

// Load views from the specified path and namespace
$this->loadViewsFrom(__DIR__.'/../resources/views/livewire/quotesbb', 'quotesbb');


}

}

0 comments on commit 9c53103

Please sign in to comment.