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