public function getRouteAttributes($model) { $attributes = []; $attributes['id'] = $model->id; $attributes['name'] = \Staq\Util::smartUrlEncode($model->name()); return $attributes; }