Shift with red gradient lettering

Laravel Fixer

The Laravel Fixer scans your Laravel application and makes changes and recommendations to help you follow the "Laravel Way".

What is the "Laravel Way"? Well, it's a collection of practices adopted by the Laravel community combined with analytics from over 11,000 Laravel projects. The goal is to ensure you're crafting your Laravel application to take advantage of all of Laravel's features while maintaining an application that's easy to upgrade.


  • A Laravel application running Laravel 6.0 or higher.
  • Must be able to run composer install from remote server.
  • Application must be free of PHP errors.


The Laravel Fixer automates the following changes:

  • Running the latest stable or LTS version of Laravel.
  • Using objects injected by Laravel where available.
  • Converting inline controller validation to Form Requests.
  • Referencing facades explicitly instead of globally.
  • Adopting composition over inheritance for Models and Controllers.
  • Removing unused directories from former Laravel directory structures.
  • Replacing Facade calls with Laravel helpers where available.
  • Converting routes to use static ::class references instead of strings.
  • Leveraging Laravel features instead of "doing it yourself".
  • Following recommendations listed in the Laravel Documentation.
  • Maintaining an application that's easy to upgrade.

For more details on the principles and practices behind code changes performed by the Laravel Fixer check out BaseLaravel.

Still have questions? Message @laravelshift on Twitter or email

Sign in with any of the following services to connect Shift with your Laravel project.

Don't use one of these services?

Temporarily push your project to a free, private repository on one of these cloud-based services or upgrade your project locally with Shift for Docker.