Skip to content
This repository was archived by the owner on Feb 18, 2023. It is now read-only.

Commit 40c1798

Browse files
author
joselfonseca
committed
Upgrade to Laravel 7
1 parent b23d305 commit 40c1798

File tree

4 files changed

+2615
-997
lines changed

4 files changed

+2615
-997
lines changed

app/Exceptions/Handler.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
namespace App\Exceptions;
44

5-
use Exception;
5+
use Throwable;
66
use Illuminate\Auth\AuthenticationException;
77
use Illuminate\Foundation\Exceptions\Handler as ExceptionHandler;
88

@@ -30,10 +30,10 @@ class Handler extends ExceptionHandler
3030
*
3131
* This is a great spot to send exceptions to Sentry, Bugsnag, etc.
3232
*
33-
* @param \Exception $exception
33+
* @param \Throwable $exception
3434
* @return void
3535
*/
36-
public function report(Exception $exception)
36+
public function report(Throwable $exception)
3737
{
3838
parent::report($exception);
3939
}
@@ -45,7 +45,7 @@ public function report(Exception $exception)
4545
* @param \Exception $exception
4646
* @return \Illuminate\Http\Response
4747
*/
48-
public function render($request, Exception $exception)
48+
public function render($request, Throwable $exception)
4949
{
5050
return parent::render($request, $exception);
5151
}

composer.json

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -13,22 +13,22 @@
1313
}
1414
],
1515
"require": {
16-
"php": "^7.2",
17-
"dingo/api": "^2.4",
18-
"fideloper/proxy": "^4.0",
16+
"php": "^7.2.5",
17+
"dingo/api": "^3.0",
18+
"fideloper/proxy": "^4.2",
1919
"intervention/image": "^2.5",
2020
"intervention/imagecache": "^2.4",
21-
"laravel/framework": "^6.2",
22-
"laravel/passport": "^7.5",
23-
"laravel/tinker": "^1.0",
24-
"spatie/laravel-permission": "^3.2"
21+
"laravel/framework": "^7.24",
22+
"laravel/passport": "^9.3",
23+
"laravel/tinker": "^2.0",
24+
"spatie/laravel-permission": "^3.16"
2525
},
2626
"require-dev": {
27-
"facade/ignition": "^1.4",
28-
"fzaninotto/faker": "^1.4",
29-
"mockery/mockery": "^1.0",
30-
"nunomaduro/collision": "^3.0",
31-
"phpunit/phpunit": "^8.0"
27+
"facade/ignition": "^2.0",
28+
"fzaninotto/faker": "^1.9.1",
29+
"mockery/mockery": "^1.3.1",
30+
"nunomaduro/collision": "^4.1",
31+
"phpunit/phpunit": "^8.5"
3232
},
3333
"config": {
3434
"optimize-autoloader": true,

0 commit comments

Comments
 (0)