spatie / blender

The Laravel template used for our CMS like projects
https://freek.dev/on-open-sourcing-blender
877 stars 148 forks source link

Laravel 5.6 Shift #503

Closed freekmurze closed 6 years ago

freekmurze commented 6 years ago

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

Before merging, you should:

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.

freekmurze commented 6 years ago

⚠ Shift could not upgrade the TrustProxies Middleware since it differed from the default Laravel version. You should compare your file to the 5.6 version and upgrade your project accordingly.

freekmurze commented 6 years ago

❌ Shift could not upgrade tests/CreatesApplication.php. You will need to compare yours against the 5.6 version and merge any new changes.

freekmurze commented 6 years ago

⚠ Shift could not upgrade the following project files since they differed from the default Laravel version. You should compare these project files against the default Laravel 5.6 versions and merge any changes:

freekmurze commented 6 years ago

❌ 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.6 configuration files and merge any changes:

freekmurze commented 6 years ago

ℹ Laravel 5.6 introduced a logging configuration file. You should ensure the log and log_level settings previously in the config/app.php are now set in config/logging.php.

freekmurze commented 6 years ago

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

freekmurze commented 6 years ago

❌ Laravel 5.6 has a dependency for fideloper/proxy of ~4.0. You have a modified dependency for fideloper/proxy in your composer.json. Ensure it meets the new version requirement of ~4.0.

freekmurze commented 6 years ago

ℹ All of the underlying Symfony components used by Laravel have been upgraded to Symfony 4.0. If you are directly interacting with Symfony components, you should review the Symfony change log and update your application accordingly.

freekmurze commented 6 years ago

ℹ The previously deprecated optimize Artisan command has been removed. With recent improvements to PHP itself including the OPcache, the optimize command no longer provides any relevant performance benefit.

freekmurze commented 6 years ago

ℹ In Laravel 5.6, Blade will double encode special characters by default. If you would like to maintain the previous behavior of preventing double encoding, you may add Blade::withoutDoubleEncoding() to your AppServiceProvider boot method.

freekmurze commented 6 years ago

ℹ Laravel 5.6 uses Bootstrap 4 by default. Shift did not update your front-end resources or dependencies as this could impact your UI. If you are using Bootstrap and wish to continue using Bootstrap 3, you should add Paginator::useBootstrapThree() to your AppServiceProvider boot method.

freekmurze commented 6 years ago

ℹ If you have manually upgraded your app from previous versions of Laravel, you should run the Laravel Linter to ensure your app is fully upgraded to the latest version of Laravel.

freekmurze commented 6 years ago

ℹ Shift noticed you have additional namespaces in your project. You should consider using the Consolidate Namespaces Shift to simplify your namespaces into the default Laravel App namespace.

freekmurze commented 6 years ago

❌ PHP syntax errors were detected after running your Shift. Often these are misplaced lines due to an unexpected code format. It may also simply be a difference between PHP versions of Shift and your project. You can check the PHP syntax by running php -l.

PHP syntax errors found in: