public function getByPrefix($prefix) { try { return \Ontology::where('prefix', $prefix)->firstOrFail()->toArray(); } catch (ModelNotFoundException $ex) { return null; } }