Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Laravel 5.5 Shift #40

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

Merged
driesvints merged 9 commits into master from shift-6275
Jun 6, 2018
Merged

Laravel 5.5 Shift #40

driesvints merged 9 commits into master from shift-6275
Jun 6, 2018

Conversation

@driesvints
Copy link
Member

@driesvints driesvints commented Feb 11, 2018

This pull request includes the changes for upgrading to Laravel 5.5. Feel free to commit any additional changes to the shift-6275 branch.

Before merging, you should:

  • Checkout the shift-6275 branch
  • Review all pull request comments for additional changes
  • Update your dependencies for Laravel 5.5
  • Run composer update (if the pre-scripts fail, add --no-scripts)
  • Thoroughly test your application

If you need help with your upgrade, check out the Shift Human Services or join the Shifty Coders Slack room to get answers to all your Laravel questions.

Copy link
Member Author

i In Laravel 5.5, the Request has() method returns true for empty strings and null. If you would like to preserve the old behavior of the has() method, you may use the new filled() method instead.

Copy link
Member Author

i In Laravel 5.5, the Request only() method returns attributes that are actually present in the request payload. If you would like to preserve the old behavior of the only() method, you may use the all() method instead.

1 similar comment
Copy link
Member Author

i In Laravel 5.5, the Request only() method returns attributes that are actually present in the request payload. If you would like to preserve the old behavior of the only() method, you may use the all() method instead.

Copy link
Member Author

i In Laravel 5.5, the request() helper will no longer retrieve nested keys. You may instead use the input() method to retrieve nested keys, for example: request()->input('nested.key')

Copy link
Member Author

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

  • phpunit.xml
  • public/index.php
  • tests/Feature/ExampleTest.php

Copy link
Member Author

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

  • config/services.php

Copy link
Member Author

i Laravel 5.5 now sets the session cookie name using the APP_NAME. If you rely on the previous laravel_session value, you may set this using the new SESSION_COOKIE environment variable. Review the cookie key in config/session.php for more details.

Copy link
Member Author

❌ Laravel 5.5 requires PHP 7. You have a modified dependency for PHP in your composer.json. Ensure it meets the new version requirement of >=7.0.0.

Copy link
Member Author

i Laravel 5.5 changed the default format for HTTP exception responses. This may affect your application if you rely upon default JSON responses. Review the Exception Format section of the Upgrade Guide for more detail.

Copy link
Member Author

i Laravel 5.5 removed bootstrap/autoload.php and uses the Composer vendor/autoload.php instead. If you were referencing bootstrap/autoload.php directly, you should upgrade your application accordingly.

Copy link
Member Author

i If you are using the database cache driver, you should run php artisan cache:clear when running your upgraded Laravel 5.5 application for the first time.

Copy link
Member Author

i Laravel 5.5 uses package auto-discovery to make it easier to install and enable packages.

This may require you to update Composer. You may do so by running composer self-update. Review the Composer documentation for more details.

In addition, you may also unregister the providers and aliases for any packages using auto-discovery from your config/app.php.

@driesvints driesvints merged commit 07c1ed9 into master Jun 6, 2018
@driesvints driesvints deleted the shift-6275 branch June 6, 2018 19:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /