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

Merged
merged 5 commits into from
Nov 3, 2023
Merged

Laravel 10 Mid-Shift #182

merged 5 commits into from
Nov 3, 2023

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

mattstauffer commented Sep 14, 2023

⚠️ 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 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

ℹ️ Laravel added the VITE_APP_NAME environment variable to allow you to customize your application name in frontend components. By default, this uses the value from the APP_NAME environment variable.

Shift added this to your .env files, but you will need to update your frontend components to use this new variable. You may reference the original Breeze PR for examples.

@driftingly driftingly force-pushed the shift-mid-laravel-10 branch from e0ab0cb to 5ee405c Compare November 3, 2023 22:11
@driftingly driftingly merged commit 83bc375 into main Nov 3, 2023
2 checks passed
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.

3 participants