Files
spa-api/app/providers/ErrorServiceProvider.php

36 lines
790 B
PHP
Raw Normal View History

2014-08-11 10:13:20 -05:00
<?php namespace Providers;
2014-07-31 15:13:50 -05:00
use Illuminate\Support\ServiceProvider;
class ErrorServiceProvider extends ServiceProvider {
/**
2014-08-12 11:58:09 -05:00
* Register any error handlers.
2014-07-31 15:13:50 -05:00
*
* @return void
*/
public function boot()
{
2014-08-11 10:13:20 -05:00
// 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.
$this->app->error(function(\Exception $exception, $code)
{
$this->app['log']->error($exception);
});
2014-07-31 15:13:50 -05:00
}
/**
* Register the service provider.
*
* @return void
*/
public function register()
{
//
}
}