'how to set size of integer fields value limit in migration file laravel 9
how to set size of integer fields value limit in migration file of Laravel (7,8,9).
I am trying this code. but it's not work
$table->id();
$table->string('name');
$table->integer('ISBN_no',15);
Solution 1:[1]
You can't do this, but you can use different types of integer as shown bellow:
$table->tinyInteger()
$table->smallInteger()
$table->integer()
$table->mediumInteger()
$table->bigInteger()
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Pravin Kumar |
