laravel-vuexy-chatbot/Providers/VuexyChatbotServiceProvider.php
2025-03-22 12:38:21 -06:00

46 lines
984 B
PHP

<?php
namespace Koneko\VuexyChatbot\Providers;
use Illuminate\Support\ServiceProvider;
use Livewire\Livewire;
class VuexyChatbotServiceProvider extends ServiceProvider
{
/**
* Register any application services.
*/
public function register(): void
{
//
}
/**
* Bootstrap any application services.
*/
public function boot(): void
{
// Register the module's routes
$this->loadRoutesFrom(__DIR__.'/../routes/admin.php');
// Cargar vistas del paquete
$this->loadViewsFrom(__DIR__.'/../resources/views', 'vuexy-chatbot');
// Register the migrations
$this->loadMigrationsFrom(__DIR__ . '/../database/migrations');
// Registrar Livewire Components
$components = [
//'cache-functions' => CacheFunctions::class,
];
foreach ($components as $alias => $component) {
Livewire::component($alias, $component);
}
}
}