Answers for "string foreign key"

0

string foreign key

$table->string('module')->nullable();
 $table->foreign('module')->references('nom')->on('modules')->onDelete('cascade');
// dans table modules :
 $table->string('nom')->unique();
Posted by: Guest on June-12-2021

Browse Popular Code Answers by Language