Closed mikaeljorhult closed 1 year ago
:x: Shift was unable to find some of your controllers and left them as string references in your routes.
You will need to search for the following controller names in your routes and replace them with the appropriate static ::class
reference manually.
:warning: Shift upgraded your configuration files by defaulting them and merging your true customizations. These include values which are not changeable through core ENV
variables.
You should review this commit for additional customizations or opportunities to use new ENV
variables. If you have a lot of customizations, you may undo this commit with git revert 0c42f36c
and make the config file changes manually.
:information_source: Shift updated your dependencies for Laravel 10. 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 10. 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.
:information_source: Laravel 9 adopted anonymous migrations. Shift automated this change to align with modern Laravel conventions and avoid naming migrations.
:information_source: Laravel renamed the password_resets
table to password_reset_tokens
. While an optional change, Shift detected you have a migration for this table and created a migration to rename it as well as updated the reference in your config/auth.php
file. Be sure to run php artisan migrate
to complete your upgrade.
:warning: Laravel 10 has added a return type of array
to the Event broadcastOn
and Notification via
methods. However, you may still return a single channel from these methods.
Shift added the array
return type to these methods in the following classes. You should review them to ensure you are returning an array
, or remove the return type.
:information_source: Laravel 10 added PHP type hints to all user-land code included in a new Laravel application. In an effort to modernize your code, Shift added type hints to any method which is used by Laravel, as well as any method which had types defined in its PHP DocBlock.
:information_source: Now with type hints in your code, defining types within PHP DocBlocks is redundant. Laravel has removed all of the @param
and @return
tags from its DocBlocks where types are defined with PHP. Similarly, Shift removed these tags from any DocBlock where the code now has equivalent type hints.
:information_source: Shift understands you may wish to preserve your full DocBlock even with PHP type hints in code. All of Shift's automation is done in nice, atomic commits. So you may easily undo this change by running git revert 624ba98
.
:information_source: All of the underlying Symfony components used by Laravel have been upgraded to Symfony 6.2. Shift detected references to Symfony classes within your application. You should review the Symfony change log for any additional changes.
:warning: Laravel 10 requires Composer 2.2 or higher. You should verify the Composer version in your environments by running composer --version
to ensure it meets this new requirement. If necessary, run composer self-update
to update Composer.
:tada: Congratulations, you're now running the latest version of Laravel!
Next, you may optionally run the following Shifts to ensure your application is fully upgraded, adopts the latest Laravel conventions, and easier to maintain in the future:
You may also use the Shift Workbench to automate common tasks for maintaining your Laravel and PHP applications.
:x: PHP syntax errors were detected after running your Shift. Often these are simply differences between the PHP version on the Shift server (8.1) and your project. Occasionally they are misplaced lines or duplicate import statements.
You may quickly check the PHP syntax locally by running php -l
on the following files:
This pull request includes the changes for upgrading to Laravel 10.x. Feel free to commit any additional changes to the
shift-84378
branch.Before merging, you need to:
shift-84378
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.