| Total Complexity | 2 |
| Total Lines | 28 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 7 | class ChangeUserFilter extends Migration |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * Run the migrations. |
||
| 11 | * |
||
| 12 | * @return void |
||
| 13 | */ |
||
| 14 | public function up() |
||
| 15 | { |
||
| 16 | $module = Module::where('name', 'user')->first(); |
||
| 17 | |||
| 18 | $filter = $module->filters->where('name', 'filter.all')->first(); |
||
| 19 | $filter->columns = [ 'username', 'name', 'email', 'is_admin' ]; |
||
| 20 | $filter->save(); |
||
| 21 | } |
||
| 22 | |||
| 23 | /** |
||
| 24 | * Reverse the migrations. |
||
| 25 | * |
||
| 26 | * @return void |
||
| 27 | */ |
||
| 28 | public function down() |
||
| 35 | } |
||
| 36 | } |
||
| 37 |