/** * Store the eloquent model that is passed in * @param Eloquent $model The Eloquent Model * @return void */ protected function storeEloquentModel($model) { if ($model->getDirty()) { $model->save(); } else { $model->touch(); } }