notalentgeek
1 year ago

How can I limit unsigned integer of Blueprint object to only have at maximum 10 numbers?

Posted 1 year ago by notalentgeek

I have these codes;

$table->unsignedInteger('something_else', true);

I want to have field 'something_else' to have at maximum 10 numbers. How can I do this in migration?

Please sign in or create an account to participate in this conversation.