Skip to content

Commit 30b464e

Browse files
committed
Bump dependencies
* PHP: 7.1 -> 7.4 * nearly the latest * 8.0 is not yet supported by our base docker image * richarvey/nginx-php-fpm: 1.9.1 -> 1.10.4 * latest, supports PHP 7.4 * Laravel: 5.8 -> 8.23 * latest * fzaninotto/faker: replaced with fakerphp/faker * fzaninotto/faker has been deprecated and the replacement is a fork owned by the Laravel team * Various other bumps to get rid of deprecated libraries/versions
1 parent 33052a5 commit 30b464e

File tree

5 files changed

+3329
-1220
lines changed

5 files changed

+3329
-1220
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM richarvey/nginx-php-fpm:1.9.1
1+
FROM richarvey/nginx-php-fpm:1.10.4
22

33
COPY . .
44

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Laravel 5.8 with a Docker PHP Image
1+
# Laravel 8.23 with a Docker PHP Image
22

33
A demo repo for deploying a Laravel PHP application on [Render](https://render.com) using Docker. You can follow the getting started tutorial [here](https://render.com/docs/deploy-php-laravel-docker).
44

@@ -19,4 +19,4 @@ A demo repo for deploying a Laravel PHP application on [Render](https://render.c
1919
| `DB_CONNECTION` | `pgsql` |
2020
| `APP_KEY` | Copy the output of `php artisan key:generate --show` |
2121

22-
That's it! Your Laravel 5.8 app will be live on your Render URL as soon as the build finishes. You can test it out by registering and logging in.
22+
That's it! Your Laravel 8.23 app will be live on your Render URL as soon as the build finishes. You can test it out by registering and logging in.

app/Exceptions/Handler.php

Lines changed: 3 additions & 3 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\Foundation\Exceptions\Handler as ExceptionHandler;
77

88
class Handler extends ExceptionHandler
@@ -32,7 +32,7 @@ class Handler extends ExceptionHandler
3232
* @param \Exception $exception
3333
* @return void
3434
*/
35-
public function report(Exception $exception)
35+
public function report(Throwable $exception)
3636
{
3737
parent::report($exception);
3838
}
@@ -44,7 +44,7 @@ public function report(Exception $exception)
4444
* @param \Exception $exception
4545
* @return \Illuminate\Http\Response
4646
*/
47-
public function render($request, Exception $exception)
47+
public function render($request, Throwable $exception)
4848
{
4949
return parent::render($request, $exception);
5050
}

composer.json

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,18 +8,19 @@
88
],
99
"license": "MIT",
1010
"require": {
11-
"php": "^7.1.3",
11+
"php": "^7.4.10",
1212
"fideloper/proxy": "^4.0",
13-
"laravel/framework": "5.8.*",
14-
"laravel/tinker": "^1.0"
13+
"laravel/framework": "8.23.*",
14+
"laravel/tinker": "^2.5",
15+
"laravel/ui": "^3.2"
1516
},
1617
"require-dev": {
1718
"beyondcode/laravel-dump-server": "^1.0",
1819
"filp/whoops": "^2.0",
19-
"fzaninotto/faker": "^1.4",
20+
"fakerphp/faker": "^1.13",
2021
"mockery/mockery": "^1.0",
21-
"nunomaduro/collision": "^3.0",
22-
"phpunit/phpunit": "^7.5"
22+
"nunomaduro/collision": "^5.2",
23+
"phpunit/phpunit": "^9.2"
2324
},
2425
"config": {
2526
"optimize-autoloader": true,

0 commit comments

Comments
 (0)