|
@@ -2,9 +2,7 @@
|
|
|
|
|
|
namespace App\Exceptions;
|
|
|
|
|
|
-use Throwable;
|
|
|
use Illuminate\Foundation\Exceptions\Handler as ExceptionHandler;
|
|
|
-use Illuminate\Database\Eloquent\ModelNotFoundException;
|
|
|
|
|
|
class Handler extends ExceptionHandler
|
|
|
{
|
|
@@ -35,10 +33,6 @@ class Handler extends ExceptionHandler
|
|
|
*/
|
|
|
public function register()
|
|
|
{
|
|
|
- // $this->reportable(function (Throwable $e) {
|
|
|
- //
|
|
|
- // });
|
|
|
-
|
|
|
$this->renderable(function (\Symfony\Component\HttpKernel\Exception\NotFoundHttpException $exception, $request) {
|
|
|
return response()->json([
|
|
|
'message' => 'not found'], 404);
|