Laravel 7.0

This commit is contained in:
Tyler
2020-12-21 02:51:11 -05:00
parent 12545e29e7
commit d8e3abac44
4 changed files with 1086 additions and 568 deletions

View File

@ -2,7 +2,7 @@
namespace App\Exceptions;
use Exception;
use Throwable;
use Illuminate\Foundation\Exceptions\Handler as ExceptionHandler;
class Handler extends ExceptionHandler {
@ -30,10 +30,10 @@ class Handler extends ExceptionHandler {
*
* This is a great spot to send exceptions to Sentry, Bugsnag, etc.
*
* @param \Exception $exception
* @param \Throwable $exception
* @return void
*/
public function report(Exception $exception) {
public function report(Throwable $exception) {
parent::report($exception);
}
@ -41,10 +41,10 @@ class Handler extends ExceptionHandler {
* Render an exception into an HTTP response.
*
* @param \Illuminate\Http\Request $request
* @param \Exception $exception
* @param \Throwable $exception
* @return \Illuminate\Http\Response
*/
public function render($request, Exception $exception) {
public function render($request, Throwable $exception) {
return parent::render($request, $exception);
}
}