What seems to be the problem:
I have:
and
public $value = ‘phases.phase’;
public $plural = ‘phases’;
public $singular = ‘phase’;
When i select and option the value of $value is correctly changed.
How do i change the other 2 based on the first one?
public function mount()
{
$this->plural = explode(’.’,$this->value)[0];
$this->singular = explode(’.’,$this->value)[1];
}
Isn’t working