CGI/FastCgi 已停止工作
public function exception()
{
DB::table('a')->get();
}
一段很简单的代码。
故意测试一下异常,按道理应该是会抛出异常吧。
现在就发生了一个很奇怪的事情,直接CGI/FastCgi停止工作了。
有遇到过类似问题的朋友吗?请指点一二哦
是个新安装的项目哦
异常类代码如下
<?php
namespace App\Exceptions;
use App\Libraries\Send;
use Exception;
use Illuminate\Foundation\Exceptions\Handler as ExceptionHandler;
class Handler extends ExceptionHandler
{
use Send;
/**
* A list of the exception types that are not reported.
*
* @var array
*/
protected $dontReport = [
//
];
/**
* A list of the inputs that are never flashed for validation exceptions.
*
* @var array
*/
protected $dontFlash = [
'password',
'password_confirmation',
];
/**
* Report or log an exception.
*
* @param \Exception $exception
* @return void
*/
public function report(Exception $exception)
{
parent::report($exception);
}
/**
* Render an exception into an HTTP response.
*
* @param \Illuminate\Http\Request $request
* @param \Exception $exception
* @return \Illuminate\Http\Response
*/
public function render($request, Exception $exception)
{
if ($exception instanceof BaseException) {
return self::errorArray($exception->getArray());
}
return parent::render($request, $exception);
}
}
推荐文章: