feat: Add deposit success email notification system with new mailer, job, view, and client update request.
This commit is contained in:
@@ -52,6 +52,25 @@ class Customer extends Authenticatable implements JWTSubject
|
||||
'ward_code',
|
||||
];
|
||||
|
||||
protected $updatable = [
|
||||
'fullname',
|
||||
'phone',
|
||||
'company',
|
||||
'address',
|
||||
'province_code',
|
||||
'ward_code',
|
||||
'gender',
|
||||
];
|
||||
|
||||
public function updatableFill(array $data): self
|
||||
{
|
||||
$data = array_intersect_key($data, array_flip($this->updatable));
|
||||
foreach ($data as $key => $value) {
|
||||
$this->{$key} = $value;
|
||||
}
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Appends for API
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user