/** * Store a newly created caloncustomer in storage. * * @return Response */ public function store() { $validator = Validator::make($data = Input::all(), CalonCustomer::$rules); if ($validator->fails()) { $errore = $validator->messages(); return Redirect::back()->withErrors($validator); } $data['created_at'] = Input::get('tgl'); // dd($data); CalonCustomer::create($data); return Redirect::route('admin.calon_customer.index')->with('message', 'berhasil loliisimo!'); }