AppServiceProvider.php 900 B

1234567891011121314151617181920212223242526272829303132
  1. <?php
  2. namespace App\Providers;
  3. use DB;
  4. use Illuminate\Support\ServiceProvider;
  5. use Illuminate\Support\Facades\Auth;
  6. use Illuminate\Support\Facades\View;
  7. use App\Repositories\AnnotationRepository;
  8. use App\Repositories\UserRepository;
  9. class AppServiceProvider extends ServiceProvider { //put your code here
  10. public function boot() {
  11. view()->composer('partials.nav', 'App\Http\ViewComposers\NavigationComposer');
  12. view()->composer('partials.scoreboard', 'App\Http\ViewComposers\ScoreboardComposer');
  13. view()->composer('contact', 'App\Http\ViewComposers\ContactComposer');
  14. view()->composer('stats.show', 'App\Http\ViewComposers\StatsComposer');
  15. view()->composer('home', 'App\Http\ViewComposers\HomeComposer');
  16. }
  17. /**
  18. * Register any application services.
  19. *
  20. * @return void
  21. */
  22. public function register() {
  23. //
  24. }
  25. }