From e242d2aa042b4bff01d7606e1355efcd5933b31a Mon Sep 17 00:00:00 2001 From: "fauzgabriel@gmail.com" Date: Mon, 13 Apr 2026 14:20:47 +0700 Subject: [PATCH] boot --- app/Models/Facilitator/Facilitator.php | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/app/Models/Facilitator/Facilitator.php b/app/Models/Facilitator/Facilitator.php index 796b248..e167ba0 100644 --- a/app/Models/Facilitator/Facilitator.php +++ b/app/Models/Facilitator/Facilitator.php @@ -38,15 +38,15 @@ class Facilitator extends Model ]; // Boot method untuk otomatis mengisi UUID saat create - protected static function boot() - { - parent::boot(); - static::creating(function ($model) { - if (empty($model->id)) { - $model->id = (string) Str::uuid(); - } - }); - } + // protected static function boot() + // { + // parent::boot(); + // static::creating(function ($model) { + // if (empty($model->id)) { + // $model->id = (string) Str::uuid(); + // } + // }); + // } // Jika ingin menggunakan created_date dari JSON sebagai pengganti created_at Laravel const CREATED_AT = 'created_date';