You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

31 lines
592 B

4 years ago
3 years ago
4 years ago
3 years ago
4 years ago
  1. <?php
  2. namespace App\Providers;
  3. use Illuminate\Support\ServiceProvider;
  4. use Illuminate\Support\Facades\App;
  5. class AppServiceProvider extends ServiceProvider
  6. {
  7. /**
  8. * Register any application services.
  9. *
  10. * @return void
  11. */
  12. public function register()
  13. {
  14. App::bind('fileManager', function(){ //Keep in mind this "check" must be return from facades accessor
  15. return new \App\FileManager;
  16. });
  17. }
  18. /**
  19. * Bootstrap any application services.
  20. *
  21. * @return void
  22. */
  23. public function boot()
  24. {
  25. //
  26. }
  27. }