self::creating(function ($model){ $model->unique_id = strtoupper(uniqid()); }); how to get $requst parameter in here? code example
Example: php unique id
uniqid ([ string $prefix = "" [, bool $more_entropy = FALSE ]] ) : string
uniqid ([ string $prefix = "" [, bool $more_entropy = FALSE ]] ) : string