Answers for "laravel migration set foreign key default value"

PHP
5

laravel migration set default value

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

foreign key laravel migration

$table->foreign('column_name')->references('id')->on('table_name')->onDelete('cascade');
Posted by: Guest on February-05-2021

Code answers related to "laravel migration set foreign key default value"

Browse Popular Code Answers by Language