first(); if ($fieldModel) { return $fieldModel->dropdown()->pluck('title', 'id'); } } public function delete($FieldId) { Field::destroy($FieldId); } public function create(array $FieldDetails) { return Field::create($FieldDetails); } public function update($FieldId, array $newDetails) { return Field::where('id', $FieldId)->update($newDetails); } }