LogServiceProvider.php 468 B

1234567891011121314151617181920212223242526272829
  1. <?php namespace App\Providers;
  2. use Illuminate\Contracts\Logging\Log;
  3. use Illuminate\Support\ServiceProvider;
  4. class LogServiceProvider extends ServiceProvider {
  5. /**
  6. * Configure the application's logging facilities.
  7. *
  8. * @param Log $log
  9. * @return void
  10. */
  11. public function boot(Log $log)
  12. {
  13. $log->useFiles(storage_path().'/logs/laravel.log');
  14. }
  15. /**
  16. * Register the service provider.
  17. *
  18. * @return void
  19. */
  20. public function register()
  21. {
  22. //
  23. }
  24. }