Closed mattstauffer closed 2 years ago
:information_source: Laravel 8 introduced class based factories. Shift automated this change. However, if you were using a community package for factories or other custom code, you should review your factories for additional changes.
If you encounter an issue, you may revert this commit and temporarily install the laravel/legacy-factories package. You may then automate the conversion to class based factories using the Shift Workbench.
:information_source: Laravel 8 added a uuid
column to the failed_jobs
table to support the new job batching features. Shift detected you have a migration for this table and created a migration for this new column. Be sure to run php artisan migrate
to complete your upgrade.
:information_source: Laravel 8 added new ENV variables for AWS_USE_PATH_STYLE_ENDPOINT
, FILESYSTEM_DRIVER
, LOG_LEVEL
, and LOG_DEPRECATIONS_CHANNEL
. While these are defaulted within their respective configuration file, you may take this opportunity to set them accordingly for your environments.
: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 8deef2cb
and make the config file changes manually.
:warning: Laravel 8 has removed the token
driver from the API authentication. This driver was not very robust and was removed from the documentation. Laravel now recommends using Sanctum.
If you were using the token
driver, you may re-add it within your auth.php
configuration file, then migrate to Sanctum at your convenience.
:information_source: Shift updated your dependencies for Laravel 8. 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 8.
Watch dealing with dependencies for tips on handling any additional package incompatibilities.
:x: Shift removed your dependency for laravel-mix-tailwind
. This package is no longer needed with Laravel Mix 6.
However, you will need to update your CSS build for Tailwind to use PostCSS directly, instead of the tailwind()
helper. For example:
- mix.postCss('resources/css/app.css', 'public/css')
- .tailwind('./tailwind.config.js');
+ mix.postCss('resources/css/app.css', 'public/css', [
+ require('tailwindcss'),
+ ]);
:x: Shift detected Vue components within your resources
folder. Laravel Mix 6 extracted Vue support into its own feature flag.
You should update your webpack.mix.js
and append the new mix.vue()
call when building any Vue components. For example:
mix.js('resources/js/app.js', 'public/js').vue();
:warning: Shift upgraded your NPM dependencies and scripts for Laravel Mix 6. You will need to run npm install
locally to ensure your dependencies are up-to-date and compatible.
If you encounter any issues, be sure you have the latest LTS or stable version of Node installed. If the problem persists, review the Update to Mix 6 docs for any additional steps.
:warning: Laravel 8 now requires PHPUnit 9 which made some configuration changes to its config file. You may automate these changes by running vendor/bin/phpunit --migrate-configuration
or comparing your phpunit.xml
to the Laravel 8 version and merging any changes.
:information_source: Laravel 8 reintroduced the app/Models
folder by default. This is an optional change. Laravel and the artisan
commands will automatically detect if you are using the app/Models
folder or not.
If you wish to modernize your application to use the app/Models
folder, you may run the Namespace Models Shift for free.
:information_source: Laravel 8 supports running your PHPUnit tests in parallel. Depending on your system, this may decrease run times as much as 70%.
To run your tests in parallel, you may use the php artisan test --parallel
command, or use the underlying vendor/bin/paratest
runner.
: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.
This pull request includes the changes for upgrading to Laravel 8.x. Feel free to commit any additional changes to the
shift-52844
branch.Before merging, you need to:
shift-52844
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.