| Conditions | 2 |
| Paths | 1 |
| Total Lines | 14 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 10 |
| CRAP Score | 2 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 14 | public function up() |
||
| 15 | { |
||
| 16 | $tableNames = config('permission.table_names'); |
||
| 17 | |||
| 18 | Schema::create($tableNames['roles'], function (Blueprint $table) { |
||
| 19 | $table->bigIncrements('id'); |
||
| 20 | $table->string('name'); |
||
| 21 | $table->string('guard_name'); |
||
| 22 | $table->timestamps(); |
||
| 23 | }); |
||
| 24 | |||
| 25 | app('cache') |
||
| 26 | ->store(config('permission.cache.store') != 'default' ? config('permission.cache.store') : null) |
||
| 27 | ->forget(config('permission.cache.key')); |
||
| 28 | } |
||
| 42 |