Change a resource attribute/property from an action.
Hey guys, can i somehow change a resource property/attribute from an action like this?
if not, how can i achieve this?
if not, how can i achieve this?
->actions([
Tables\Actions\ViewAction::make()
->action(function () {
$this->contact->read_at = Carbon::now();
$this->contact->save();
}),
Tables\Actions\DeleteAction::make(),
])