Php 如何在Laravel 4中使用Errbit?
我只是用ruby在我的电脑上安装了,它已经在我的本地电脑上运行了。我使用Laravel 4开发了一个web应用程序,但我不知道如何将我的web应用程序的所有错误发送到errbit。Php 如何在Laravel 4中使用Errbit?,php,laravel-4,errbit,Php,Laravel 4,Errbit,我只是用ruby在我的电脑上安装了,它已经在我的本地电脑上运行了。我使用Laravel 4开发了一个web应用程序,但我不知道如何将我的web应用程序的所有错误发送到errbit。我已经安装了这个软件包,但我不知道如何在我的web应用程序上实现它。 我已经尝试在我的。/app/start/global.php上的应用程序的错误处理程序中使用下面的脚本,但它只显示白色页面。这是我的剧本: <?php ... App::error(function(Exception $exception,
我已经安装了这个软件包,但我不知道如何在我的web应用程序上实现它。
我已经尝试在我的
。/app/start/global.php上的应用程序的错误处理程序中使用下面的脚本,但它只显示白色页面。这是我的剧本:
<?php
...
App::error(function(Exception $exception, $code)
{
Errbit::instance()->notify($exception);
Log::error($exception);
});
...
请帮帮我,谢谢你
<?php
class someController extends \BaseController {
public function index(){
return View::make('editor.index') //Remove ';' at the end of line code
}
}
<?php
public function index(){
try {
return View::make('editor.index')
} catch (Exception $e) {
Errbit::instance()->notify($e);
}
}