@@ -20,7 +20,7 @@ |
||
| 20 | 20 | $tableCheck = Schema::connection($connection)->hasTable($table); |
| 21 | 21 | |
| 22 | 22 | if (!$tableCheck) { |
| 23 | - Schema::connection($connection)->create($table, function (Blueprint $table) use ($permissionsTable, $rolesTable) { |
|
| 23 | + Schema::connection($connection)->create($table, function(Blueprint $table) use ($permissionsTable, $rolesTable) { |
|
| 24 | 24 | $table->increments('id')->unsigned(); |
| 25 | 25 | $table->integer('permission_id')->unsigned()->index(); |
| 26 | 26 | $table->foreign('permission_id')->references('id')->on($permissionsTable)->onDelete('cascade'); |
@@ -19,7 +19,7 @@ |
||
| 19 | 19 | $tableCheck = Schema::connection($connection)->hasTable($table); |
| 20 | 20 | |
| 21 | 21 | if (!$tableCheck) { |
| 22 | - Schema::connection($connection)->create($table, function (Blueprint $table) use ($rolesTable) { |
|
| 22 | + Schema::connection($connection)->create($table, function(Blueprint $table) use ($rolesTable) { |
|
| 23 | 23 | $table->increments('id')->unsigned(); |
| 24 | 24 | $table->integer('role_id')->unsigned()->index(); |
| 25 | 25 | $table->foreign('role_id')->references('id')->on($rolesTable)->onDelete('cascade'); |
@@ -19,7 +19,7 @@ |
||
| 19 | 19 | $tableCheck = Schema::connection($connection)->hasTable($table); |
| 20 | 20 | |
| 21 | 21 | if (!$tableCheck) { |
| 22 | - Schema::connection($connection)->create($table, function (Blueprint $table) use ($permissionsTable) { |
|
| 22 | + Schema::connection($connection)->create($table, function(Blueprint $table) use ($permissionsTable) { |
|
| 23 | 23 | $table->increments('id')->unsigned(); |
| 24 | 24 | $table->integer('permission_id')->unsigned()->index(); |
| 25 | 25 | $table->foreign('permission_id')->references('id')->on($permissionsTable)->onDelete('cascade'); |