No Description

CheckServiceProvider.php 641B

1234567891011121314151617181920212223242526272829303132333435
  1. <?php
  2. namespace App\Providers;
  3. use Illuminate\Support\ServiceProvider;
  4. class CheckServiceProvider extends ServiceProvider
  5. {
  6. /**
  7. * Bootstrap the application services.
  8. *
  9. * @return void
  10. */
  11. public function boot()
  12. {
  13. //
  14. }
  15. /**
  16. * Register the application services.
  17. *
  18. * @return void
  19. */
  20. public function register()
  21. {
  22. $this->app->singleton('check', function ($app) {
  23. return new \App\Support\Check\Check(function () use ($app) {
  24. $data = $app['request']->all();
  25. return $data;
  26. });
  27. });
  28. //
  29. }
  30. }