protected function getSlugSource($from) { if (is_null($from)) { return $this->model->__toString(); } $sourceStrings = array_map(function ($key) { return data_get($this->model, $key); }, (array) $from); return join($sourceStrings, ' '); }