public function resolveRecord(): ?Client
{
return Client::firstOrNew([
'user_id' => Auth::user()->id,
'email' => $this->data['email'],
], [
'user_id' => Auth::user()->id,
'firstname' => $this->data['firstname'],
'lastname' => $this->data['lastname'],
]);
}
public function resolveRecord(): ?Client
{
return Client::firstOrNew([
'user_id' => Auth::user()->id,
'email' => $this->data['email'],
], [
'user_id' => Auth::user()->id,
'firstname' => $this->data['firstname'],
'lastname' => $this->data['lastname'],
]);
}