This commit is contained in:
Docker VM 2024-07-06 18:44:34 -04:00
parent b2900017d2
commit 8f05734a6a

View File

@ -6,25 +6,30 @@ use Illuminate\Support\ServiceProvider;
class ResponsiveCardsServiceProvider extends ServiceProvider class ResponsiveCardsServiceProvider extends ServiceProvider
{ {
/**
* Bootstrap any application services.
*
* @return void
*/
public function boot() public function boot()
{ {
// Load views
$this->loadViewsFrom(__DIR__ . '/resources/views', 'responsive-cards');
// Publish assets
$this->publishes([ $this->publishes([
__DIR__ . '/resources/css/cards.css' => public_path('vendor/responsive-cards/css/cards.css'), __DIR__.'/../config/responsive-cards.php' => config_path('responsive-cards.php'),
__DIR__ . '/resources/js/cards.js' => public_path('vendor/responsive-cards/js/cards.js'), ], 'responsive-cards-config');
], 'public');
// Publish views $this->loadViewsFrom(__DIR__.'/../resources/views', 'responsive-cards');
$this->publishes([ $this->loadMigrationsFrom(__DIR__.'/../database/migrations');
__DIR__ . '/resources/views' => resource_path('views/vendor/responsive-cards'),
]);
} }
/**
* Register any application services.
*
* @return void
*/
public function register() public function register()
{ {
// $this->mergeConfigFrom(
__DIR__.'/../config/responsive-cards.php', 'responsive-cards'
);
} }
} }