Skip to content

Instantly share code, notes, and snippets.

@ivanaugustobd
Last active September 30, 2018 17:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ivanaugustobd/dac81725c66fe8a528b2057703230661 to your computer and use it in GitHub Desktop.
Save ivanaugustobd/dac81725c66fe8a528b2057703230661 to your computer and use it in GitHub Desktop.
<?php
class CustomersController extends Controller
{
public function store(CustomerFormRequest $request)
{
$customer = Customer::create($request->input());
return redirect(route('customers.show', $customer->id));
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment