laravel-vuexy-pos/Providers/VuexyPosServiceProvider.php
2025-03-27 14:47:40 -06:00

52 lines
1.2 KiB
PHP

<?php
namespace Koneko\VuexyPos\Providers;
use Illuminate\Support\ServiceProvider;
use Livewire\Livewire;
use Koneko\VuexyPos\Livewire\Cache\CacheFunctions;
use Koneko\VuexyPos\Models\User;
use OwenIt\Auditing\AuditableObserver;
class VuexyPosServiceProvider 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-pos');
// 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);
}
// Registrar auditoría en usuarios
//User::observe(AuditableObserver::class);
}
}