Even more automation to maintain and modernize the Laravel and PHP code you work on every day.Run from your desktop or the cloud
Apply the Laravel code style or custom rules to your codebase.
Convert your code to use PHP's short array syntax.
Convert class references from strings to static class constants.
Convert switch statements to match expressions.
Convert simple constructors to use the property promotion.
Convert null checks to use the nullsafe operator.
Correct the order of optional parameters for PHP 8.
Convert uses of create_function to anonymous functions.
Adopt the string functions available in PHP 8.
Adopt `readonly` properties in PHP 8.1.
Adopt the array functions available in PHP 7.3.
Convert closures to arrow functions.
Adopt null coalesce operators.
Convert the deprecated each function.
Adopt common array destructuring.
Use Faker methods instead of property access.
Fix PHPUnit method visibility, casing, and return type.
Remove all PHP DocBlocks from your code.
Find and remove unnecessary, unused, or unreachable code.
Add PHP type hints to properties, parameters, and returns.
Remove DocBlock tags which are already defined in your PHP code.
Adopt using early returns over nested code.
Apply a common format to your test cases.
Convert calls to `array_merge` to use array unpacking.
Collapse object initialization for class properties.
Convert `spatie/enum` to use native Enums in PHP 8.1.
Replace Facade references using the global namespace with their FQCN.
Convert common Facade chains to helper functions.
Remove unnecessary table name properties from models.
Remove unnecessary columns from the dates property in models.
Convert the deprecated dates property in models.
Streamline query builder order methods
Convert string based validation rules into arrays.
Convert old array and string helpers into their modern class-based methods.
Convert simple calls to Laravel's optional helper to use the nullsafe operator available PHP 8.
Separate a generic model factory into individual model factories.
Upgrade your Laravel Mix dependencies and configuration to version 6.
Leverage the injected request object in Controllers and Middleware.
Remove unnecessary references by autoloading your application commands.
Convert response and redirect calls to use Laravel's expressive method chains.
Convert routes options using the old, array syntax.
Modernize outdated HTML and Blade directives.
Convert inline controller validation into Form Request objects.
Convert calls to the env helper within your application to use the config helper with a new custom configuration file.
Register routes using static class references instead of strings
Convert your route controller actions from strings to array "tuples".
Convert model factories to namespaced, class based factories.
Remove the default Laravel DocBlocks from your classes.
Remove the down method from your database migrations.
Convert your migrations to anonymous classes.
Convert your models from "fillable" to "unguarded".
Adopt the new `LazilyRefreshDatabase` trait in your tests.
Add or update the package constraints to your Composer dependencies.
Remove a package from your Composer dependencies.
Update the dependencies for your project to be compatible with a specific version of Laravel.
Update the dependencies for your Laravel package to be compatible with a specific version of Laravel.
“ The Workbench is the perfect tool to make tedious, common tasks easy. Refactor and streamline your code with a single button. ”
Bobby Bouwmann, Author - Laravel Secrets
Shift's primary focus is upgrading Laravel. But you may only run Shift once a year. That leaves a big window of time for your project to fall behind on the latest conventions.
You may run Shifts like the Laravel Fixer, but sometimes you may simply want to cherry pick some of the automation for an existing Laravel project you've inherited.
You may also manage a few Laravel projects and want to normalize the Laravel conventions or code style they use. Or manage their Composer dependencies.
Well, that's exactly what the Workbench does. Using the Workbench you may create custom builds from a growing set of tasks and quickly run them on multiple projects to help maintain and modernize your Laravel applications.
Run the Workbench locally with the desktop app or from the cloud. Get started now, or continue reading…
“ Just saved 2-3 hours using the Workbench. This is 100% worth the money. ”
Steve McDougall, Technical Lead - sqft.capital
We're putting the power of Shift in your hands. Run free tasks immediately. Upgrade to access to premium tasks.
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.