protected static function bootAutoUuid()
    {
        static::creating(function ($model) {
            foreach($model->getAutoUuids() as $autoUuid) {
                if (empty($model->{$autoUuid})) {
                    $model->setAttribute($autoUuid, $model->generateUuid()->getBytes());
                }
            }
        });
    }
protected static function bootAutoUuid()
    {
        static::creating(function ($model) {
            foreach($model->getAutoUuids() as $autoUuid) {
                if (empty($model->{$autoUuid})) {
                    $model->setAttribute($autoUuid, $model->generateUuid()->getBytes());
                }
            }
        });
    }
protected static function bootAutoUuid ( ) { static :: creating ( function ( $ model ) { foreach ( $ model -> getAutoUuids ( ) as $ autoUuid ) { if ( empty ( $ model -> { $ autoUuid } ) ) { $ model -> setAttribute ( $ autoUuid , $ model -> generateUuid ( ) -> getBytes ( ) ) ; } } } ) ; }
Boot the uuid trait for a model.

@return void
Boot the uuid trait for a model .