/** * Store a newly created resource in storage. * POST /billings * * @return Response */ public function store() { $validator = Validator::make($data = Input::all(), Billing::$rules); if ($validator->fails()) { return Redirect::back()->withErrors($validator)->withInput(); } Billing::create($data); return Redirect::route('billings-item-get')->with('global', 'Item successfully created!'); }