HelpersServiceProvider.php 472 B

123456789101112131415161718192021222324252627282930
  1. <?php
  2. namespace App\Providers;
  3. use Illuminate\Support\ServiceProvider;
  4. class HelpersServiceProvider 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. foreach( glob(app_path() . '/Helpers/*.php') as $file ){
  23. require_once($file);
  24. }
  25. }
  26. }