mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-04-20 17:02:16 +00:00
Delete client
This commit is contained in:
@@ -78,8 +78,14 @@ class Client extends Model
|
||||
{
|
||||
parent::boot();
|
||||
|
||||
static::creating(function ($order) {
|
||||
$order->id = (string) Str::uuid();
|
||||
static::creating(function ($client) {
|
||||
$client->id = (string) Str::uuid();
|
||||
});
|
||||
|
||||
static::deleting(function ($client) {
|
||||
if ($client->getRawOriginal('avatar')) {
|
||||
Storage::delete($client->getRawOriginal('avatar'));
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user