public static function setFieldData() { $fieldData = array(); $category = new Category(); $arr = $category->getFillable(); foreach ($arr as $v) { $fieldData[$v] = Input::get($v); } unset($arr); unset($category); return $fieldData; }
public static function setFieldData() { $fieldData = array(); $category = new Category(); $arr = $category->getFillable(); foreach ($arr as $v) { $fieldData[$v] = Input::get($v); } unset($arr); unset($category); return $fieldData; }