Shift with red gradient lettering

Fluent Routes

Premium
Laravel

Convert routes using the old, array syntax for options to use Laravel's modern expressive method chains.

Before

Route::post('token', [
'uses' => 'TokenController@create',
'as' => 'token.create',
'middleware' => ['auth', 'throttle:2,1']
]);

After

Route::post('token', 'TokenController@create')
->middleware('auth', 'throttle:2,1')
->name('token.create');

← Back to the Workbench 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.