12345678910111213141516171819202122232425262728293031323334353637 |
- <?php namespace App\Providers;
- use App, Log, Exception;
- use Illuminate\Support\ServiceProvider;
- class ErrorServiceProvider extends ServiceProvider {
- /**
- * Register any error handlers.
- *
- * @return void
- */
- public function boot()
- {
- // Here you may handle any errors that occur in your application, including
- // logging them or displaying custom views for specific errors. You may
- // even register several error handlers to handle different types of
- // exceptions. If nothing is returned, the default error view is
- // shown, which includes a detailed stack trace during debug.
- App::error(function(Exception $e)
- {
- Log::error($e);
- });
- }
- /**
- * Register the service provider.
- *
- * @return void
- */
- public function register()
- {
- //
- }
- }
|