-
Notifications
You must be signed in to change notification settings - Fork 566
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Laravel 6.x Shift #7688
Laravel 6.x Shift #7688
Conversation
Shift automatically applies the Laravel coding style - which uses the PSR-12 coding style as a base with some minor additions. You may customize the code style applied by configuring [Pint](https://laravel.com/docs/pint), [PHP CS Fixer](https://github.com/FriendsOfPHP/PHP-CS-Fixer), or [PHP CodeSniffer](https://github.com/squizlabs/PHP_CodeSniffer) for your project root. For more information on customizing the code style applied by Shift, [watch this short video](https://laravelshift.com/videos/shift-code-style).
Laravel 5.2 no longer registers the `Input` facade by default. While still available in Laravel 5, the `Input` facade is removed in Laravel 6.
ℹ️ Shift noticed you have additional namespaces in your application. You may use the Consolidate Namespaces Shift to simplify your namespaces into the default Laravel |
❌ Shift could not upgrade the following files since they differed from the default Laravel version. You will need to compare these files against the default Laravel 6 versions and merge any changes:
|
Shift automated this change, but could not upgrade the following files since they differed from the default Laravel version. You should compare these files against the default Laravel 6 versions and merge this change:
|
ℹ️ Laravel 6 changed the default Redis client from |
ℹ️ Shift updated your dependencies for Laravel 6. While many of the popular packages are reviewed, you may have to update additional packages in order for your application to be compatible with Laravel 6. Watch dealing with dependencies for tips on handling any Composer issues. The following dependencies were updated by a major version and may have their own changes. You may check their changelog for any additional upgrade steps. |
// no mass assignment protection or events...
$post->user()->update(['foo' => 'bar']);
// mass assignment protection and events...
$post->user->update(['foo' => 'bar']); Shift found potential uses of the
|
ℹ️ The Eloquent model's |
Shift updated your application to use the |
|
ℹ️ Laravel 6 now requires Carbon 2. While Shift reviewed your application for common breaking changes, you may want to review the Carbon 2 migration notes for additional changes. |
ℹ️ Laravel 6 made some changes to the email verification routes. First, to prevent CSRF attacks the If you were calling these routes in your application code, you will need to adjust the requests accordingly. |
Shift detected the following
|
Shift found potential uses of the
|
ℹ️ Laravel 6 made performance optimizations for integer key types. If you are using a string as your model's primary key, you may set the /**
* The "type" of the primary key ID.
*
* @var string
*/
protected $keyType = 'string'; |
ℹ️ The |
ℹ️ Previous versions of Laravel would retry jobs indefinitely. Beginning with Laravel 6, the |
For tips on running multiple Shifts effectively, watch upgrading old Laravel applications. |
Apply fixes from StyleCI
This pull request includes the changes for upgrading to Laravel 6.x. Feel free to commit any additional changes to the
shift-77532
branch.Before merging, you need to:
shift-77532
branchcomposer update
(if the scripts fail, add--no-scripts
)If you need help with your upgrade, check out the Human Shifts. You may also join the Shifty Coders Slack workspace to level-up your Laravel skills.