HOGGAR Docs
Version 1.x
search
search
menu
HOGGAR Docs
search
search
Editing records
Put yours fields in the initField() method.
public function initField()
{
    $this->form([
        TextInput::make('name'),
    ]);
}

If you want to validate yours fields go to store() method.
public function store(Request $request)
{

  $request->validate([
        'name' => ['required'],
    ]);

    // ...

}
You can also modify a field just before putting to database.
public function store(Request $request)
{  
   
    // ...

    $this->hogarRecord->name = 'robert'; 
    $this->updateRecord($request);
  
    ... //  
}