Skip to content
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 10 Mid-Shift #1407

Closed
wants to merge 3 commits into from
Closed

Laravel 10 Mid-Shift #1407

wants to merge 3 commits into from

Conversation

DariusIII
Copy link
Member

This pull request includes recent changes to Laravel skeleton files. Although some of these changes may be considered optional, they may be required to use recent additions - such as the hashed attribute cast and log processors. This also includes new configuration options and skeleton slimming.

Since Laravel has moved to an annual release cycle, changes since the initial release may reach a critical mass. When they do, you will receive this automated pull request as part of your Shifty Plan.

Before merging, you need to:

  • Checkout the shift-mid-laravel-10 branch
  • Review all pull request comments for additional changes
  • Run composer update (if the scripts fail, add --no-scripts)
  • Clear any config, route, or view cache
  • Thoroughly test your application (no tests?, no CI?)

If you would like more detail you may view the full changes. You may also stay informed of weekly Laravel release highlights through the Shifty Bits Newsletter.

@DariusIII
Copy link
Member Author

ℹ️ Laravel 10.x has introduced a new hashed attribute cast. This ensures a value is hashed before saving. The Laravel skeleton application now casts the user password field as hashed.

If you have a User model with a password field, or other models with hashed values, you may update your model $casts property to set the field as hashed.

protected $casts = [
    'password' => 'hashed',
    // ...
];

@DariusIII
Copy link
Member Author

⚠️ Shift was not able to automate the updates to some of the core Laravel files. You should compare the following files against their latest Laravel 10 versions and merge any changes:

@DariusIII
Copy link
Member Author

⚠️ Shift was not able to automate the updates to some of the configuration files. You should compare the following files against their latest Laravel 10 version and merge any changes:

@DariusIII
Copy link
Member Author

ℹ️ Shift updated your dependencies with the latest constraints from Laravel 10. While many of the popular packages are also reviewed, you may have to update some packages. Watch dealing with dependencies for tips on handling any package incompatibilities.

@DariusIII
Copy link
Member Author

ℹ️ Laravel 10 now uses Vite to build frontend assets. While you may continue to use Laravel Mix, it is no longer the default. If you wish to modernize your application to use Vite, you may run the Vite Converter for free.

@DariusIII
Copy link
Member Author

ℹ️ Shift detected your application has a PHPUnit dependency of ^8.0 || ^9.0 || ^10.0. Laravel 10.x applications now use PHPUnit 10. Once you have merged these changes, you may run the PHPUnit 10 Shift for free to upgrade your test suite to PHPUnit 10.

@DariusIII
Copy link
Member Author

⚠️ Shift detected you are using a Laravel package like Horizon or Nova which may need to have its published assets regenerated after upgrading. Be sure to use artisan to republish these assets as well as php artisan view:clear to avoid any errors.

@DariusIII DariusIII closed this Sep 26, 2023
@DariusIII DariusIII deleted the shift-mid-laravel-10 branch April 29, 2024 07:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants