Skip to content

Commit e760324

Browse files
committedDec 13, 2020
Update to laravel commit: ddb26fbc504cd64fb1b89511773aa8d03c758c6d
1 parent 8cbb3f7 commit e760324

14 files changed

+223
-85
lines changed
 

‎.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ _ide_helper.php
2222
.project
2323
composer.phar
2424
coverage.xml
25+
docker-compose.override.yml
2526
error.log
2627
Homestead.json
2728
Homestead.yaml

‎CHANGELOG.md

+3
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ All notable changes to this project will be documented in this file.
88
## Changed
99

1010
- Update dependencies
11+
- Update to laravel commit: ddb26fbc504cd64fb1b89511773aa8d03c758c6d
12+
- Update exception handling to match laravel
13+
- Added sail docker file
1114

1215
## [8.0.0] - 2020-10-21
1316

‎app/Exceptions/Handler.php

+10
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,16 @@ class Handler extends ExceptionHandler
2222
GeneralException::class,
2323
];
2424

25+
/**
26+
* A list of the inputs that are never flashed for validation exceptions.
27+
*
28+
* @var array
29+
*/
30+
protected $dontFlash = [
31+
'password',
32+
'password_confirmation',
33+
];
34+
2535
/**
2636
* Report or log an exception.
2737
*

‎app/Providers/RouteServiceProvider.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ public function boot()
7171
protected function configureRateLimiting()
7272
{
7373
RateLimiter::for('api', function (Request $request) {
74-
return Limit::perMinute(60);
74+
return Limit::perMinute(60)->by(optional($request->user())->id ?: $request->ip());
7575
});
7676
}
7777
}

‎composer.json

+9-8
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,18 @@
99
],
1010
"license": "MIT",
1111
"require": {
12-
"php": "^7.3",
12+
"php": "^7.3|^8.0",
1313
"arcanedev/log-viewer": "8.x",
1414
"darkghosthunter/laraguard": "dev-master",
15-
"fideloper/proxy": "^4.2",
15+
"fideloper/proxy": "^4.4",
1616
"fruitcake/laravel-cors": "^2.0",
1717
"guzzlehttp/guzzle": "^7.0.1",
1818
"jamesmills/laravel-timezone": "^1.9",
1919
"lab404/laravel-impersonate": "^1.6",
2020
"langleyfoxall/laravel-nist-password-rules": "^4.1",
21-
"laravel/framework": "^8.0",
21+
"laravel/framework": "^8.12",
2222
"laravel/socialite": "^5.0",
23-
"laravel/tinker": "^2.0",
23+
"laravel/tinker": "^2.5",
2424
"laravel/ui": "^3.0",
2525
"livewire/livewire": "^2.0",
2626
"rappasoft/laravel-livewire-tables": "^0.3",
@@ -34,12 +34,13 @@
3434
"barryvdh/laravel-debugbar": "^3.2",
3535
"barryvdh/laravel-ide-helper": "^2.6",
3636
"codedungeon/phpunit-result-printer": "^0.29",
37-
"facade/ignition": "^2.3.6",
37+
"facade/ignition": "^2.5",
3838
"friendsofphp/php-cs-fixer": "^2.16",
39-
"fzaninotto/faker": "^1.9.1",
40-
"mockery/mockery": "^1.3.1",
39+
"fakerphp/faker": "^1.9.1",
40+
"laravel/sail": "^0.0.5",
41+
"mockery/mockery": "^1.4.2",
4142
"nunomaduro/collision": "^5.0",
42-
"phpunit/phpunit": "^9.0"
43+
"phpunit/phpunit": "^9.3.3"
4344
},
4445
"config": {
4546
"optimize-autoloader": true,

‎composer.lock

+113-57
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎config/app.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@
220220
'Password' => Illuminate\Support\Facades\Password::class,
221221
'Queue' => Illuminate\Support\Facades\Queue::class,
222222
'Redirect' => Illuminate\Support\Facades\Redirect::class,
223-
'Redis' => Illuminate\Support\Facades\Redis::class,
223+
// 'Redis' => Illuminate\Support\Facades\Redis::class,
224224
'Request' => Illuminate\Support\Facades\Request::class,
225225
'Response' => Illuminate\Support\Facades\Response::class,
226226
'Route' => Illuminate\Support\Facades\Route::class,

‎config/broadcasting.php

+5
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,11 @@
4141
],
4242
],
4343

44+
'ably' => [
45+
'driver' => 'ably',
46+
'key' => env('ABLY_KEY'),
47+
],
48+
4449
'redis' => [
4550
'driver' => 'redis',
4651
'connection' => 'default',

‎config/cache.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
| using this caching library. This connection is used when another is
1414
| not explicitly specified when executing a given caching function.
1515
|
16-
| Supported: "apc", "array", "database", "file",
17-
| "memcached", "redis", "dynamodb"
16+
| Supported drivers: "apc", "array", "database", "file",
17+
| "memcached", "redis", "dynamodb", "null"
1818
|
1919
*/
2020

‎config/cors.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
|
1616
*/
1717

18-
'paths' => ['api/*'],
18+
'paths' => ['api/*', 'sanctum/csrf-cookie'],
1919

2020
'allowed_methods' => ['*'],
2121

‎config/filesystems.php

-13
Original file line numberDiff line numberDiff line change
@@ -15,19 +15,6 @@
1515

1616
'default' => env('FILESYSTEM_DRIVER', 'local'),
1717

18-
/*
19-
|--------------------------------------------------------------------------
20-
| Default Cloud Filesystem Disk
21-
|--------------------------------------------------------------------------
22-
|
23-
| Many applications store files both locally and in the cloud. For this
24-
| reason, you may specify a default "cloud" driver here. This driver
25-
| will be bound as the Cloud disk implementation in the container.
26-
|
27-
*/
28-
29-
'cloud' => env('FILESYSTEM_CLOUD', 's3'),
30-
3118
/*
3219
|--------------------------------------------------------------------------
3320
| Filesystem Disks

‎docker-composer.yml

+74
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
# For more information: https://laravel.com/docs/sail
2+
version: '3'
3+
services:
4+
laravel.test:
5+
build:
6+
context: ./vendor/laravel/sail/runtimes/8.0
7+
dockerfile: Dockerfile
8+
args:
9+
WWWGROUP: '${WWWGROUP}'
10+
image: sail-8.0/app
11+
ports:
12+
- '${APP_PORT:-80}:80'
13+
environment:
14+
WWWUSER: '${WWWUSER}'
15+
LARAVEL_SAIL: 1
16+
volumes:
17+
- '.:/var/www/html'
18+
networks:
19+
- sail
20+
depends_on:
21+
- mysql
22+
- redis
23+
# - selenium
24+
# selenium:
25+
# image: 'selenium/standalone-chrome'
26+
# volumes:
27+
# - '/dev/shm:/dev/shm'
28+
# networks:
29+
# - sail
30+
# depends_on:
31+
# - laravel.test
32+
mysql:
33+
image: 'mysql:8.0'
34+
ports:
35+
- '${FORWARD_DB_PORT:-3306}:3306'
36+
environment:
37+
MYSQL_ROOT_PASSWORD: '${DB_PASSWORD}'
38+
MYSQL_DATABASE: '${DB_DATABASE}'
39+
MYSQL_USER: '${DB_USERNAME}'
40+
MYSQL_PASSWORD: '${DB_PASSWORD}'
41+
MYSQL_ALLOW_EMPTY_PASSWORD: 'yes'
42+
volumes:
43+
- 'sailmysql:/var/lib/mysql'
44+
networks:
45+
- sail
46+
redis:
47+
image: 'redis:alpine'
48+
ports:
49+
- '${FORWARD_REDIS_PORT:-6379}:6379'
50+
volumes:
51+
- 'sailredis:/data'
52+
networks:
53+
- sail
54+
# memcached:
55+
# image: 'memcached:alpine'
56+
# ports:
57+
# - '11211:11211'
58+
# networks:
59+
# - sail
60+
mailhog:
61+
image: 'mailhog/mailhog:latest'
62+
ports:
63+
- 1025:1025
64+
- 8025:8025
65+
networks:
66+
- sail
67+
networks:
68+
sail:
69+
driver: bridge
70+
volumes:
71+
sailmysql:
72+
driver: local
73+
sailredis:
74+
driver: local

‎package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22
"private": true,
33
"scripts": {
44
"dev": "npm run development",
5-
"development": "cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js",
5+
"development": "cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --config=node_modules/laravel-mix/setup/webpack.config.js",
66
"watch": "npm run development -- --watch",
77
"watch-poll": "npm run watch -- --watch-poll",
88
"hot": "cross-env NODE_ENV=development node_modules/webpack-dev-server/bin/webpack-dev-server.js --inline --hot --disable-host-check --config=node_modules/laravel-mix/setup/webpack.config.js",
99
"prod": "npm run production",
10-
"production": "cross-env NODE_ENV=production node_modules/webpack/bin/webpack.js --no-progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js"
10+
"production": "cross-env NODE_ENV=production node_modules/webpack/bin/webpack.js --no-progress --config=node_modules/laravel-mix/setup/webpack.config.js"
1111
},
1212
"devDependencies": {
1313
"@coreui/coreui": "^3.0.0",

‎resources/lang/en/auth.php

+1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
*/
1515

1616
'failed' => 'These credentials do not match our records.',
17+
'password' => 'The provided password is incorrect.',
1718
'throttle' => 'Too many login attempts. Please try again in :seconds seconds.',
1819

1920
];

0 commit comments

Comments
 (0)
Please sign in to comment.