Skip to content
This repository was archived by the owner on Dec 11, 2020. It is now read-only.

Commit ac44668

Browse files
authored
Merge pull request #45 from lucid-architecture/5.8
Upgrade to Laravel v5.8
2 parents 1d5f460 + 3194d51 commit ac44668

File tree

14 files changed

+69
-37
lines changed

14 files changed

+69
-37
lines changed

.env.example

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,11 @@ MAIL_USERNAME=null
2929
MAIL_PASSWORD=null
3030
MAIL_ENCRYPTION=null
3131

32+
AWS_ACCESS_KEY_ID=
33+
AWS_SECRET_ACCESS_KEY=
34+
AWS_DEFAULT_REGION=
35+
AWS_BUCKET=
36+
3237
PUSHER_APP_ID=
3338
PUSHER_APP_KEY=
3439
PUSHER_APP_SECRET=

app/Http/Controllers/Auth/RegisterController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ protected function validator(array $data)
5151
return Validator::make($data, [
5252
'name' => ['required', 'string', 'max:255'],
5353
'email' => ['required', 'string', 'email', 'max:255', 'unique:users'],
54-
'password' => ['required', 'string', 'min:6', 'confirmed'],
54+
'password' => ['required', 'string', 'min:8', 'confirmed'],
5555
]);
5656
}
5757

composer.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,19 @@
66
"type": "project",
77
"require": {
88
"php": ">=7.1.3",
9-
"laravel/framework": "5.7.*",
10-
"lucid-arch/laravel-foundation": "5.7.*",
9+
"laravel/framework": "5.8.*",
10+
"lucid-arch/laravel-foundation": "5.8.*",
1111
"laravel/tinker": "^1.0",
1212
"fideloper/proxy": "~4.0"
1313
},
1414
"require-dev": {
1515
"fzaninotto/faker": "^1.4",
1616
"mockery/mockery": "^1.0",
17-
"nunomaduro/collision": "^2.0",
18-
"phpunit/phpunit": "~7.0",
17+
"nunomaduro/collision": "^3.0",
18+
"phpunit/phpunit": "^7.5",
1919
"symfony/css-selector": "~4.0",
2020
"symfony/dom-crawler": "~4.0",
21-
"lucid-arch/laravel-console": "5.7.*",
21+
"lucid-arch/laravel-console": "5.8.*",
2222
"beyondcode/laravel-dump-server": "^1.0",
2323
"filp/whoops": "^2.0"
2424
},

config/app.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,7 @@
193193
'aliases' => [
194194

195195
'App' => Illuminate\Support\Facades\App::class,
196+
'Arr' => Illuminate\Support\Arr::class,
196197
'Artisan' => Illuminate\Support\Facades\Artisan::class,
197198
'Auth' => Illuminate\Support\Facades\Auth::class,
198199
'Blade' => Illuminate\Support\Facades\Blade::class,
@@ -222,6 +223,7 @@
222223
'Schema' => Illuminate\Support\Facades\Schema::class,
223224
'Session' => Illuminate\Support\Facades\Session::class,
224225
'Storage' => Illuminate\Support\Facades\Storage::class,
226+
'Str' => Illuminate\Support\Str::class,
225227
'URL' => Illuminate\Support\Facades\URL::class,
226228
'Validator' => Illuminate\Support\Facades\Validator::class,
227229
'View' => Illuminate\Support\Facades\View::class,

config/auth.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@
4444
'api' => [
4545
'driver' => 'token',
4646
'provider' => 'users',
47+
'hash' => false,
4748
],
4849
],
4950

config/cache.php

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +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", "memcached", "redis"
16+
| Supported: "apc", "array", "database", "file",
17+
| "memcached", "redis", "dynamodb"
1718
|
1819
*/
1920

@@ -75,6 +76,13 @@
7576
'connection' => 'cache',
7677
],
7778

79+
'dynamodb' => [
80+
'driver' => 'dynamodb',
81+
'key' => env('AWS_ACCESS_KEY_ID'),
82+
'secret' => env('AWS_SECRET_ACCESS_KEY'),
83+
'region' => env('AWS_DEFAULT_REGION', 'us-east-1'),
84+
'table' => env('DYNAMODB_CACHE_TABLE', 'cache'),
85+
],
7886
],
7987

8088
/*

config/database.php

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<?php
22

3+
use Illuminate\Support\Str;
4+
35
return [
46

57
/*
@@ -53,6 +55,9 @@
5355
'prefix_indexes' => true,
5456
'strict' => true,
5557
'engine' => null,
58+
'options' => extension_loaded('pdo_mysql') ? array_filter([
59+
PDO::MYSQL_ATTR_SSL_CA => env('MYSQL_ATTR_SSL_CA'),
60+
]) : [],
5661
],
5762

5863
'pgsql' => [
@@ -97,7 +102,12 @@
97102

98103
'redis' => [
99104

100-
'client' => 'predis',
105+
'client' => env('REDIS_CLIENT', 'predis'),
106+
107+
'options' => [
108+
'cluster' => env('REDIS_CLUSTER', 'predis'),
109+
'prefix' => Str::slug(env('APP_NAME', 'laravel'), '_').'_database_',
110+
],
101111

102112
'default' => [
103113
'host' => env('REDIS_HOST', '127.0.0.1'),

config/queue.php

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,15 +46,16 @@
4646
'host' => 'localhost',
4747
'queue' => 'default',
4848
'retry_after' => 90,
49+
'block_for' => 0,
4950
],
5051

5152
'sqs' => [
5253
'driver' => 'sqs',
53-
'key' => 'your-public-key',
54-
'secret' => 'your-secret-key',
55-
'prefix' => 'https://sqs.us-east-1.amazonaws.com/your-account-id',
56-
'queue' => 'your-queue-name',
57-
'region' => 'us-east-1',
54+
'key' => env('AWS_ACCESS_KEY_ID'),
55+
'secret' => env('AWS_SECRET_ACCESS_KEY'),
56+
'prefix' => env('SQS_PREFIX', 'https://sqs.us-east-1.amazonaws.com/your-account-id'),
57+
'queue' => env('SQS_QUEUE', 'your-queue-name'),
58+
'region' => env('AWS_DEFAULT_REGION', 'us-east-1'),
5859
],
5960

6061
'redis' => [

config/services.php

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,14 @@
2020
'endpoint' => env('MAILGUN_ENDPOINT', 'api.mailgun.net'),
2121
],
2222

23+
'postmark' => [
24+
'token' => env('POSTMARK_TOKEN'),
25+
],
26+
2327
'ses' => [
24-
'key' => env('SES_KEY'),
25-
'secret' => env('SES_SECRET'),
26-
'region' => env('SES_REGION', 'us-east-1'),
28+
'key' => env('AWS_ACCESS_KEY_ID'),
29+
'secret' => env('AWS_SECRET_ACCESS_KEY'),
30+
'region' => env('AWS_DEFAULT_REGION', 'us-east-1'),
2731
],
2832

2933
'sparkpost' => [

database/factories/UserFactory.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
<?php
22

3-
use Faker\Generator as Faker;
3+
use Framework\User;
4+
use Faker\Generator as Faker;
5+
46

57
/*
68
|--------------------------------------------------------------------------
@@ -13,7 +15,7 @@
1315
|
1416
*/
1517

16-
$factory->define(Framework\User::class, function (Faker $faker) {
18+
$factory->define(User::class, function (Faker $faker) {
1719
return [
1820
'name' => $faker->name,
1921
'email' => $faker->unique()->safeEmail,

0 commit comments

Comments
 (0)