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 6.x Shift #31

Merged
merged 5 commits into from
Jul 8, 2022
Merged

Laravel 6.x Shift #31

merged 5 commits into from
Jul 8, 2022

Conversation

Barsnes
Copy link
Owner

@Barsnes Barsnes commented Jul 8, 2022

This pull request includes the changes for upgrading to Laravel 6.x. Feel free to commit any additional changes to the shift-65963 branch.

Before merging, you need to:

  • Checkout the shift-65963 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 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.

In an effort to make upgrading the constantly changing config files
easier, Shift defaulted them and merged your true customizations -
where ENV variables may not be used.
@Barsnes
Copy link
Owner Author

Barsnes commented Jul 8, 2022

❌ Shift could not upgrade the following files since they differed from the default Laravel version. You will need to compare these files against the default Laravel 6 versions and merge any changes:

  • app/Http/Controllers/Auth/ResetPasswordController.php
  • app/Http/Kernel.php

@Barsnes
Copy link
Owner Author

Barsnes commented Jul 8, 2022

⚠️ Laravel 6.x consolidated references to /home as a constant within the RouteServiceProvider. This makes it easier to maintain and change in a single place.

Shift automated this change, but could not upgrade the following files since they differed from the default Laravel version. You should compare these files against the default Laravel 6 versions and merge this change:

  • app/Http/Controllers/Auth/LoginController.php
  • app/Http/Controllers/Auth/RegisterController.php
  • app/Http/Controllers/Auth/VerificationController.php

@Barsnes
Copy link
Owner Author

Barsnes commented Jul 8, 2022

⚠️ 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 eb213437 and make the config file changes manually.

@Barsnes
Copy link
Owner Author

Barsnes commented Jul 8, 2022

ℹ️ Laravel 6 changed the default Redis client from predis to phpredis. You may keep using predis by setting REDIS_CLIENT=predis for your environment.

@Barsnes
Copy link
Owner Author

Barsnes commented Jul 8, 2022

ℹ️ Shift updated your dependencies for Laravel 6. 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 6.

Watch dealing with dependencies for tips on handling any additional package incompatibilities.

@Barsnes
Copy link
Owner Author

Barsnes commented Jul 8, 2022

ℹ️ Laravel 6 now requires Carbon 2. While Shift reviewed your application for common breaking changes, you may want to review the Carbon 2 migration notes for additional changes.

@Barsnes
Copy link
Owner Author

Barsnes commented Jul 8, 2022

ℹ️ Laravel 6 made performance optimizations for integer key types. If you are using a string as your model's primary key, you may set the $keyType property on your model.

/**
 * The "type" of the primary key ID.
 *
 * @var string
 */
protected $keyType = 'string';

@Barsnes
Copy link
Owner Author

Barsnes commented Jul 8, 2022

ℹ️ The mandrill and sparkpost mail drivers, as well as the rackspace storage driver were removed in Laravel 6. If you were using these drivers, you may adopt a community maintained package which provides the driver.

@Barsnes
Copy link
Owner Author

Barsnes commented Jul 8, 2022

ℹ️ Previous versions of Laravel would retry jobs indefinitely. Beginning with Laravel 6, the php artisan queue:work now tries a job one time by default. If you want to force jobs to be tried indefinitely, you may pass the --tries=0 option.

@Barsnes
Copy link
Owner Author

Barsnes commented Jul 8, 2022

⚠️ Laravel 6.x has reached end of life. It no longer receives bug fixes. Shift recommends continuing to upgrade to the latest version (Laravel 9.x).

For tips on running multiple Shifts effectively, watch upgrading old Laravel applications.

@Barsnes Barsnes merged commit e047595 into master Jul 8, 2022
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