Skip to content

Commit 5f4663e

Browse files
committed
Migrate to Laravel 6
2 parents 3f3cf2e + 65959b2 commit 5f4663e

29 files changed

+163
-181
lines changed

.editorconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@ trim_trailing_whitespace = true
1111
[*.md]
1212
trim_trailing_whitespace = false
1313

14-
[*.yml]
14+
[*.{yml,yaml}]
1515
indent_size = 2

.env.example

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ LOG_CHANNEL=stack
1111
DB_CONNECTION=mysql
1212
DB_HOST=127.0.0.1
1313
DB_PORT=3306
14-
DB_DATABASE=homestead
15-
DB_USERNAME=homestead
16-
DB_PASSWORD=secret
14+
DB_DATABASE=laravel
15+
DB_USERNAME=root
16+
DB_PASSWORD=
1717

1818
BROADCAST_DRIVER=log
1919
CACHE_DRIVER=file

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@
1010
/docs/api/build
1111
/docs/api/_cache
1212
/.env
13+
.env.backup
1314
/.phpunit.result.cache
1415
/Homestead.json
1516
/Homestead.yaml
1617
/npm-debug.log
1718
/yarn-error.log
18-
1919
*~
2020
/.phpstorm.meta.php
2121
/_ide_helper.php

CHANGELOG.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
# Release Notes
22

3-
## [Unreleased](https://github.com/laravel/laravel/compare/v5.8.3...master)
3+
## [Unreleased](https://github.com/laravel/laravel/compare/v5.8.3...develop)
4+
5+
### Changed
6+
- Require PHP 7.2 ([25cf4c4](https://github.com/laravel/laravel/commit/25cf4c492308b9c5148f9522d8dd8f8f18819f50))
7+
- Encourage to use PHPUnit 8 ([0582a20](https://github.com/laravel/laravel/commit/0582a20adddc0e6bd16ca05eeae93e6412924ad6))
48

59

610
## [v5.8.16 (2019-05-07)](https://github.com/laravel/laravel/compare/v5.8.3...master)

app/Http/Kernel.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@ class Kernel extends HttpKernel
1414
* @var array
1515
*/
1616
protected $middleware = [
17+
\App\Http\Middleware\TrustProxies::class,
1718
\App\Http\Middleware\CheckForMaintenanceMode::class,
1819
\Illuminate\Foundation\Http\Middleware\ValidatePostSize::class,
1920
\App\Http\Middleware\TrimStrings::class,
2021
\Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull::class,
21-
\App\Http\Middleware\TrustProxies::class,
2222
];
2323

2424
/**
@@ -73,6 +73,7 @@ class Kernel extends HttpKernel
7373
\Illuminate\Session\Middleware\StartSession::class,
7474
\Illuminate\View\Middleware\ShareErrorsFromSession::class,
7575
\App\Http\Middleware\Authenticate::class,
76+
\Illuminate\Routing\Middleware\ThrottleRequests::class,
7677
\Illuminate\Session\Middleware\AuthenticateSession::class,
7778
\Illuminate\Routing\Middleware\SubstituteBindings::class,
7879
\Illuminate\Auth\Middleware\Authorize::class,

app/Support/helpers.php

Lines changed: 5 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,15 @@
11
<?php
22

3-
if (! function_exists('filter_html')) {
3+
if (! function_exists('helper_function')) {
44
/**
5-
* Remove dangerous tags (with attributes) from html.
5+
* Example of a helper function.
66
*
7-
* @param string $html
7+
* @param $paramaters
88
*
99
* @return string
1010
*/
11-
function filter_html($html, $defaultAllowed = null)
11+
function helper_function($paramaters)
1212
{
13-
if (! $defaultAllowed) {
14-
$defaultAllowed = 'div,img[src],a[href|title],blockquote[cite],h1,h2,h3,h4,h5,b,i,tt,hr,strong,span,s,p,code,pre,em,ul,ol,li,table,thead,tbody,tr,td,th,br,*[style|class]';
15-
}
16-
17-
$config = HTMLPurifier_Config::createDefault();
18-
$config->set('Core.Encoding', 'UTF-8');
19-
$allowed = config('editor.allowed_tags', $defaultAllowed);
20-
21-
// put here every tag and attribute that you want to pass through
22-
// $config->set('HTML.AllowedAttributes', '*.style');
23-
$config->set('HTML.Allowed', $allowed);
24-
25-
$purifier = new HTMLPurifier($config);
26-
27-
// return the filtered elements.
28-
return $purifier->purify($html);
13+
//
2914
}
3015
}

composer.json

Lines changed: 11 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -8,23 +8,20 @@
88
],
99
"license": "MIT",
1010
"require": {
11-
"php": "^7.1.3",
12-
"barryvdh/laravel-debugbar": "^3.2",
13-
"barryvdh/laravel-ide-helper": "^2.5",
14-
"ezyang/htmlpurifier": "^4.10",
11+
"php": "^7.2",
1512
"fideloper/proxy": "^4.0",
13+
"laravel/framework": "^6.0",
1614
"friendsofphp/php-cs-fixer": "^2.14",
17-
"laravel/framework": "5.8.*",
1815
"laravel/tinker": "^1.0"
1916
},
2017
"require-dev": {
21-
"beyondcode/laravel-dump-server": "^1.0",
22-
"doctrine/dbal": "^2.9",
23-
"filp/whoops": "^2.0",
18+
"facade/ignition": "^1.4",
2419
"fzaninotto/faker": "^1.4",
2520
"mockery/mockery": "^1.0",
2621
"nunomaduro/collision": "^3.0",
27-
"phpunit/phpunit": "^7.5"
22+
"phpunit/phpunit": "^8.0",
23+
"barryvdh/laravel-ide-helper": "^2.6",
24+
"barryvdh/laravel-debugbar": "^3.2"
2825
},
2926
"config": {
3027
"optimize-autoloader": true,
@@ -60,15 +57,14 @@
6057
"php-cs:fix": "vendor/bin/php-cs-fixer fix",
6158
"app:clear": "php artisan clear-compiled && php artisan cache:clear && php artisan config:clear && php artisan debugbar:clear && php artisan route:clear && php artisan view:clear",
6259
"auto-complete:generate": [
63-
"php artisan ide-helper:meta",
64-
"php artisan ide-helper:generate",
65-
"php artisan ide-helper:models --nowrite"
60+
"@php artisan ide-helper:meta",
61+
"@php artisan ide-helper:generate",
62+
"@php artisan ide-helper:models --nowrite"
6663
],
67-
"api:generate": "php sami.phar update docs/api/config.php",
6864
"post-autoload-dump": [
6965
"Illuminate\\Foundation\\ComposerScripts::postAutoloadDump",
70-
"@php artisan ide-helper:generate",
71-
"@php artisan ide-helper:meta",
66+
"@php artisan ide-helper:generate || true",
67+
"@php artisan ide-helper:meta || true",
7268
"@php artisan package:discover --ansi"
7369
],
7470
"post-root-package-install": [

config/broadcasting.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
'app_id' => env('PUSHER_APP_ID'),
3838
'options' => [
3939
'cluster' => env('PUSHER_APP_CLUSTER'),
40-
'encrypted' => true,
40+
'useTLS' => true,
4141
],
4242
],
4343

config/cache.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@
8282
'secret' => env('AWS_SECRET_ACCESS_KEY'),
8383
'region' => env('AWS_DEFAULT_REGION', 'us-east-1'),
8484
'table' => env('DYNAMODB_CACHE_TABLE', 'cache'),
85+
'endpoint' => env('DYNAMODB_ENDPOINT'),
8586
],
8687

8788
],

config/database.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -119,21 +119,23 @@
119119

120120
'redis' => [
121121

122-
'client' => env('REDIS_CLIENT', 'predis'),
122+
'client' => env('REDIS_CLIENT', 'phpredis'),
123123

124124
'options' => [
125-
'cluster' => env('REDIS_CLUSTER', 'predis'),
126-
'prefix' => Str::slug(env('APP_NAME', 'laravel'), '_').'_database_',
125+
'cluster' => env('REDIS_CLUSTER', 'redis'),
126+
'prefix' => env('REDIS_PREFIX', Str::slug(env('APP_NAME', 'laravel'), '_').'_database_'),
127127
],
128128

129129
'default' => [
130+
'url' => env('REDIS_URL'),
130131
'host' => env('REDIS_HOST', '127.0.0.1'),
131132
'password' => env('REDIS_PASSWORD', null),
132133
'port' => env('REDIS_PORT', 6379),
133134
'database' => env('REDIS_DB', 0),
134135
],
135136

136137
'cache' => [
138+
'url' => env('REDIS_URL'),
137139
'host' => env('REDIS_HOST', '127.0.0.1'),
138140
'password' => env('REDIS_PASSWORD', null),
139141
'port' => env('REDIS_PORT', 6379),

0 commit comments

Comments
 (0)