Component & Field changes
Refactor Form attributes, move from mount() to formAttr()
mount() to formAttr()public function mount(User $user)
{
$this->fill([ //you might have used $this->fill([])...
'wrapWithView' => false,
'inline' => false,
'showDelete' => false,
]);
$this->formTitle = 'Edit User'; //...or, you set the form attributes separately
$this->mount_form($user);
}public function mount(User $user)
{
$this->mount_form($user);
}
public function formAttr(): array
{
return [
'formTitle' => 'Edit User',
'wrapWithView' => false,
'inline' => false,
'showDelete' => false,
];
}Component methods changed to protected
delete() and onDeleteModel() security risk!
Search and replace:
Deprecated fields or field methods
Changed defaults
Changed field methods
New field methods/attributes
Fixed
Validation
Last updated
Was this helpful?