AdminSectionsServiceProvider.php 642 B

12345678910111213141516171819202122232425262728293031323334
  1. <?php
  2. namespace App\Providers;
  3. use App\Http\Admin\Locations;
  4. use App\Http\Admin\Users;
  5. use App\Location;
  6. use App\User;
  7. use SleepingOwl\Admin\Providers\AdminSectionsServiceProvider as ServiceProvider;
  8. class AdminSectionsServiceProvider extends ServiceProvider
  9. {
  10. /**
  11. * @var array
  12. */
  13. protected $sections = [
  14. User::class => Users::class,
  15. Location::class => Locations::class
  16. ];
  17. /**
  18. * Register sections.
  19. *
  20. * @param \SleepingOwl\Admin\Admin $admin
  21. * @return void
  22. */
  23. public function boot(\SleepingOwl\Admin\Admin $admin)
  24. {
  25. //
  26. parent::boot($admin);
  27. }
  28. }