'string', ]; protected static function boot() { parent::boot(); static::creating(function ($model) { if (empty($model->id_booking)) { $model->id_booking = Str::uuid(); } if(empty($model->status_tes)) { $model->status_tes = '1'; } if(empty($model->unix_expired_time)) { $model->unix_expired_time = (string) (time() + 86400); // Set expiration time to 24 hour from now } }); } }