| Total Complexity | 3 |
| Total Lines | 24 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 6 | class CreateUserPermissionTable extends BaseMigration |
||
| 7 | { |
||
| 8 | public function up() |
||
| 9 | { |
||
| 10 | $this->createPivot($this->user_permission, $this->users, $this->permissions, 'user_id', 'permission_id'); |
||
| 11 | } |
||
| 12 | |||
| 13 | public function down() |
||
| 20 | } |
||
| 21 | |||
| 22 | protected function createPivot(string $table, string $first_table, string $second_table, string $first_key, string $second_key) |
||
| 33 |