LogServiceProvider.php 408 B

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