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