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 #236

Closed
wants to merge 3 commits into from
Closed

Laravel 10 Mid-Shift #236

wants to merge 3 commits into from

Conversation

mattstauffer
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.

@mattstauffer
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',
    // ...
];

@mattstauffer
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:

@mattstauffer
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:

@mattstauffer
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.

@mattstauffer
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.

@driftingly driftingly closed this Apr 5, 2024
@driftingly driftingly deleted the shift-mid-laravel-10 branch April 6, 2024 21:47
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.

None yet

3 participants