feat: upgrading laravel version to 11 from 10

This commit is contained in:
amir-ys
2024-11-07 23:01:06 +03:30
parent acb9871379
commit ff8db13621
9 changed files with 785 additions and 1394 deletions
+9 -9
View File
@@ -4,7 +4,7 @@ namespace App\Exceptions;
use Illuminate\Foundation\Exceptions\Handler as ExceptionHandler;
use Illuminate\Http\Request;
use Illuminate\Http\Response;
use Symfony\Component\HttpFoundation\Response;
use Throwable;
class Handler extends ExceptionHandler
@@ -31,29 +31,29 @@ class Handler extends ExceptionHandler
/**
* Report or log an exception.
*
* @param Throwable $throwable
* @param Throwable $e
* @return void
* @throws Throwable
*/
public function report(Throwable $throwable)
public function report(Throwable $e)
{
if (app()->bound('sentry') && $this->shouldReport($throwable)) {
app('sentry')->captureException($throwable);
if (app()->bound('sentry') && $this->shouldReport($e)) {
app('sentry')->captureException($e);
}
parent::report($throwable);
parent::report($e);
}
/**
* Render an exception into an HTTP response.
*
* @param Request $request
* @param Throwable $throwable
* @param Throwable $e
* @return Response
* @throws Throwable
*/
public function render($request, Throwable $throwable): Response
public function render($request, Throwable $e): Response
{
return parent::render($request, $throwable);
return parent::render($request, $e);
}
}
+1 -2
View File
@@ -28,7 +28,6 @@ class AuthServiceProvider extends ServiceProvider
public function boot()
{
$this->registerPolicies();
Passport::loadKeysFrom(__DIR__.'/../secrets/oauth');
Passport::enablePasswordGrant();
}
}