Hi, i need the permalink to also take the last name, cause right now it takes just the first name, but i don't know how to pass the last name. Any ideas how can i achieve this?
public function getCreateForm(): Form
{
return Form::make([
Input::make()
->name('first_name')
->label('First Name')
->translatable()
->onChange('formatPermalink'),
Input::make()
->name('last_name')
->label('Last Name')
->translatable()
->onChange('formatPermalink'),
Input::make()
->name('slug')
->label(twillTrans('twill::lang.modal.permalink-field'))
->translatable()
->ref('permalink')
->prefix($this->getPermalinkPrefix($this->getPermalinkBaseUrl()))
]);
}