mirror of
https://git.meshkee.com/cssd/cssd-back.git
synced 2026-10-11 13:51:08 +03:30
feat: upgrade laravel version from 6 to 7
This commit is contained in:
+15
-11
@@ -2,8 +2,10 @@
|
||||
|
||||
namespace App\Exceptions;
|
||||
|
||||
use Exception;
|
||||
use Illuminate\Foundation\Exceptions\Handler as ExceptionHandler;
|
||||
use Illuminate\Http\Request;
|
||||
use Illuminate\Http\Response;
|
||||
use Throwable;
|
||||
|
||||
class Handler extends ExceptionHandler
|
||||
{
|
||||
@@ -29,27 +31,29 @@ class Handler extends ExceptionHandler
|
||||
/**
|
||||
* Report or log an exception.
|
||||
*
|
||||
* @param \Exception $exception
|
||||
* @param Throwable $throwable
|
||||
* @return void
|
||||
* @throws Throwable
|
||||
*/
|
||||
public function report(Exception $exception)
|
||||
public function report(Throwable $throwable)
|
||||
{
|
||||
if (app()->bound('sentry') && $this->shouldReport($exception)) {
|
||||
app('sentry')->captureException($exception);
|
||||
if (app()->bound('sentry') && $this->shouldReport($throwable)) {
|
||||
app('sentry')->captureException($throwable);
|
||||
}
|
||||
|
||||
parent::report($exception);
|
||||
parent::report($throwable);
|
||||
}
|
||||
|
||||
/**
|
||||
* Render an exception into an HTTP response.
|
||||
*
|
||||
* @param \Illuminate\Http\Request $request
|
||||
* @param \Exception $exception
|
||||
* @return \Illuminate\Http\Response
|
||||
* @param Request $request
|
||||
* @param Throwable $throwable
|
||||
* @return Response
|
||||
* @throws Throwable
|
||||
*/
|
||||
public function render($request, Exception $exception)
|
||||
public function render($request, Throwable $throwable): Response
|
||||
{
|
||||
return parent::render($request, $exception);
|
||||
return parent::render($request, $throwable);
|
||||
}
|
||||
}
|
||||
|
||||
+5
-5
@@ -9,16 +9,16 @@
|
||||
"license": "MIT",
|
||||
"require": {
|
||||
"php": "^7.4",
|
||||
"laravel/framework": "^6.0",
|
||||
"laravel/framework": "^7.0",
|
||||
"laravel/passport": "^9.3.2",
|
||||
"coraxster/flysystem-aws-s3-v3-minio": "^1.0",
|
||||
"fideloper/proxy": "^4.0",
|
||||
"spatie/laravel-medialibrary": "^7.0",
|
||||
"kalnoy/nestedset": "^5.0",
|
||||
"laravel/tinker": "^1.0",
|
||||
"laravel/tinker": "^2.0",
|
||||
"lcobucci/jwt": "3.3.3",
|
||||
"maatwebsite/excel": "^3.1",
|
||||
"milon/barcode": "^6.0.3",
|
||||
"milon/barcode": "^7.0",
|
||||
"sentry/sentry-laravel": "^2.3",
|
||||
"spatie/laravel-permission": "^3.0"
|
||||
},
|
||||
@@ -27,8 +27,8 @@
|
||||
"filp/whoops": "^2.0",
|
||||
"fzaninotto/faker": "^1.4",
|
||||
"mockery/mockery": "^1.0",
|
||||
"nunomaduro/collision": "^2.0",
|
||||
"phpunit/phpunit": "^7.5"
|
||||
"nunomaduro/collision": "^4.1",
|
||||
"phpunit/phpunit": "^8.5"
|
||||
},
|
||||
"config": {
|
||||
"optimize-autoloader": true,
|
||||
|
||||
Generated
+1182
-1103
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user