ComposerServiceProvider.php 698 B

12345678910111213141516171819202122232425262728293031
  1. <?php
  2. namespace App\Providers;
  3. use Illuminate\Support\ServiceProvider;
  4. class ComposerServiceProvider extends ServiceProvider
  5. {
  6. /**
  7. * Register services.
  8. *
  9. * @return void
  10. */
  11. public function register()
  12. {
  13. //
  14. }
  15. /**
  16. * Bootstrap services.
  17. *
  18. * @return void
  19. */
  20. public function boot()
  21. {
  22. view()->composer('application.layouts.header','App\Http\ViewComposers\ApplicationNotificationComposer');
  23. view()->composer('supervisor.layout.header','App\Http\ViewComposers\SupervisorNotificationComposer');
  24. view()->composer('admin.layouts.header','App\Http\ViewComposers\AdminNotificationComposer');
  25. }
  26. }