/** * Run the database seeds. * * @return void */ public function run() { MoneyArrange::create(array('hundred' => 0, 'fifty' => 0, 'twenty' => 0, 'ten' => 0, 'one' => 0)); }
public function updateMiscellaneous() { $attribute = Input::all(); $model = MoneyArrange::find($this->money_arrange_id); $result_participant = $model->fill($attribute)->save(); if ($result_participant) { return redirect()->action('HomeController@getMiscellaneous'); } }