Laravel -Migration mit Primärschlüssel
$table->string('code', 30)->primary();
Ruzaik11
$table->string('code', 30)->primary();
$table->primary(['user_id','permission_id']);