(new Role)->getStatusID('active')
trait UUID
{
public $incrementing = false;
protected static function boot()
{
parent::boot();
static::creating(function (Model $model) {
$model->{$model->getKeyName()} = Str::orderedUuid();
});
}
}
До 5.7 его не было там.