I am new to laravel.
Now I use the migrate command to create the table, but the field length is not applicable. Laravel does not provide this option.
Below are my codes:
$table->increments('id')->length(11);
$table->dateTime('created_time');
$table->integer('bank_id')->length(11);
$table->tinyInteger('is_black')->length(1);
The field length is_black
should be 1, but it is actually generated as 4. How can I solve this problem?
Any suggestion or advice would be appreciated.
Thank you in advance
source
share