string foreign key
$table->string('module')->nullable();
$table->foreign('module')->references('nom')->on('modules')->onDelete('cascade');
// dans table modules :
$table->string('nom')->unique();
Are there any code examples left?
New code examples in category Other