Shift with red gradient lettering

Fluent Responses

Premium
Laravel

Convert response and redirect calls to use Laravel's expressive method chains.

Before

response('');
response(null, 409);
response($content, 200, ['X-Header' => 'Shifty']);
 
Redirect::back()->withInput($request->all());
redirect(route('home'));
redirect($url, 302);
redirect('/path', null, ['X-Header' => 'Shifty']);

After

response()->noContent();
response()->noContent(409);
response($content)->withHeaders(['X-Header' => 'Shifty']);
 
redirect()->back()->withInput();
redirect()->route('home');
redirect()->to($url);
redirect()->to('/path')->withHeaders(['X-Header' => 'Shifty']);

← 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.