Laravel 11, Vuexy Admin 10.3, by admin@koneko.mx

This commit is contained in:
2025-01-25 04:23:40 -06:00
parent c3045b43b1
commit 64d505910f
1283 changed files with 140198 additions and 0 deletions

View File

@ -0,0 +1,39 @@
<?php
namespace Modules\Admin\App\Providers;
use Illuminate\Support\ServiceProvider;
use Illuminate\Support\Facades\View;
use Illuminate\Foundation\AliasLoader;
use Modules\Admin\App\Console\Commands\CleanInitialAvatars;
use Modules\Admin\App\Http\View\Composers\VuexyTemplateComposer;
class VuexyAdminProvider extends ServiceProvider
{
/**
* Register any application services.
*/
public function register(): void
{
// Register the module's aliases
AliasLoader::getInstance()->alias('Helper', \Modules\Admin\App\Helpers\Helpers::class);
}
/**
* Bootstrap any application services.
*/
public function boot(): void
{
// Register any module-specific event listeners here
if ($this->app->runningInConsole()) {
$this->commands([
CleanInitialAvatars::class,
]);
return;
}
// Composer para las vistas del módulo Admin
View::composer('admin::layouts.vuexy.*', VuexyTemplateComposer::class);
}
}