Set default value for expired_at date in Tailor blueprint

Hi,

For a specific blueprint, I’d like to prefill the expired_at date with a date 6 months in the future.
Below configuration in the blueprint does work as expected, only when trying to run php artisan october:migrate I get the error message “Field name is reserved: expired_at”.

fields:
    expired_at:
        default: now + 6 months
        column:
            label: Expires on
        context: create

Is there a way to set the default value of reserved fields in Tailor?

Thanks.

Hi @chocolata

This is actually a bug since the code works, but the validation is stopping it. We will fix it in the next patch (v3.6.21).

Thanks!

1 Like