/** * @return array */ public function getCmsEditorOptions() { $options = []; $editors = Editor::all(); if ($editors === null) { return $options; } foreach ($editors->all() as $editor) { $options[$editor->id] = $editor->name; } return $options; }