Migration Laravel avec clé primaire
$table->string('code', 30)->primary();
Ruzaik11
$table->string('code', 30)->primary();
$table->primary(['user_id','permission_id']);