123456789101112131415161718192021222324252627282930313233343536 |
- <?php
- namespace App\Providers;
- use Illuminate\Support\Facades\URL;
- use Illuminate\Support\ServiceProvider;
- class AppServiceProvider extends ServiceProvider
- {
- protected $widgets = [
- \App\Admin\Widgets\LogoutNav::class,
- ];
- /**
- * Register any application services.
- *
- * @return void
- */
- public function register()
- {
- //
- }
- /**
- * Bootstrap any application services.
- *
- * @return void
- */
- public function boot()
- {
- $widgetsRegistry = $this->app[\SleepingOwl\Admin\Contracts\Widgets\WidgetsRegistryInterface::class];
- foreach ($this->widgets as $widget) {
- $widgetsRegistry->registerWidget($widget);
- }
- }
- }
|