create($parameters); return $this->cleanup($model); } /** * Perform model cleanup for presentation. * * @param Model $model * @return Model */ public function cleanup(Model $model): Model { // Scout will load relations to refresh related search indices. $model->unsetRelations(); // Columns with default values may be unset if not provided in the query string. $model->refresh(); return $model; } }