Answers for "default value tinyint laravel"

PHP
5

laravel migration set default value

$table->string('name')->default('Hello World!');
Posted by: Guest on May-12-2020
0

tinyinteger laravel +size

$table->boolean('fieldname'); will give you TINYINT(1) instaed of using tinyInteger
Posted by: Guest on June-18-2020

Browse Popular Code Answers by Language