Conditions | 1 |
Paths | 1 |
Total Lines | 17 |
Code Lines | 12 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
15 | public function up() |
||
16 | { |
||
17 | Schema::create('pcmm_permissions', function (Blueprint $table) { |
||
18 | $table->increments('id'); |
||
19 | $table->integer('menu_id')->unsigned()->index(); |
||
20 | $table->string('namespace', 255)->index(); |
||
21 | $table->string('controller', 255)->index(); |
||
22 | $table->enum('method', ['GET', 'POST', 'PUT', 'DELETE', 'PATCH'])->index(); |
||
23 | $table->string('action', 255)->index(); |
||
24 | $table->boolean('allowed')->default(true); |
||
25 | $table->timestamps(); |
||
26 | |||
27 | }); |
||
28 | |||
29 | Artisan::call('db:seed', [ |
||
30 | '--class' => PcmmPermissionsTableSeeder::class, |
||
31 | '--force' => true |
||
32 | ]); |
||
45 |