{$model->getKeyName()}) === true) { $model->{$model->getKeyName()} = Str::uuid()->toString(); } }); } /** * Get the value indicating whether the IDs are incrementing. * * @return boolean */ public function getIncrementing() { return false; } /** * Get the auto-incrementing key type. * * @return string */ public function getKeyType() { return 'string'; } }