12345678910111213141516171819202122232425262728293031323334353637383940 |
- <?php namespace App\Providers;
- use Exception;
- use Illuminate\Contracts\Logging\Log;
- use Illuminate\Support\ServiceProvider;
- use Illuminate\Contracts\Exception\Handler;
- class ErrorServiceProvider extends ServiceProvider {
-
- public function boot(Handler $handler, Log $log)
- {
-
-
-
-
-
- $handler->error(function(Exception $e) use ($log)
- {
- $log->error($e);
- });
- }
-
- public function register()
- {
-
- }
- }
|