LogServiceProvider.php 362B

123456789101112131415161718192021
  1. <?php
  2. namespace Illuminate\Log;
  3. use Illuminate\Support\ServiceProvider;
  4. class LogServiceProvider extends ServiceProvider
  5. {
  6. /**
  7. * Register the service provider.
  8. *
  9. * @return void
  10. */
  11. public function register()
  12. {
  13. $this->app->singleton('log', function () {
  14. return new LogManager($this->app);
  15. });
  16. }
  17. }