diff --git a/migrations/create_bouncer_tables.php b/migrations/create_bouncer_tables.php index 4e5dac9..a1e50a5 100644 --- a/migrations/create_bouncer_tables.php +++ b/migrations/create_bouncer_tables.php @@ -24,6 +24,7 @@ public function up() $table->json('options')->nullable(); $table->integer('scope')->nullable()->index(); $table->timestamps(); + $table->index(['entity_type', 'entity_id']); }); Schema::create(Models::table('roles'), function (Blueprint $table) {