@@ 17-23 (lines=7) @@ | ||
14 | { |
|
15 | $config = config('laravel-permission.table_names'); |
|
16 | ||
17 | Schema::create($config['roles'], function (Blueprint $table) { |
|
18 | $table->increments('id'); |
|
19 | $table->string('name')->unique(); |
|
20 | $table->string('display_name')->nullable(); |
|
21 | $table->string('description')->nullable(); |
|
22 | $table->timestamps(); |
|
23 | }); |
|
24 | ||
25 | Schema::create($config['permissions'], function (Blueprint $table) { |
|
26 | $table->increments('id'); |
|
@@ 25-31 (lines=7) @@ | ||
22 | $table->timestamps(); |
|
23 | }); |
|
24 | ||
25 | Schema::create($config['permissions'], function (Blueprint $table) { |
|
26 | $table->increments('id'); |
|
27 | $table->string('name')->unique(); |
|
28 | $table->string('display_name')->nullable(); |
|
29 | $table->string('description')->nullable(); |
|
30 | $table->timestamps(); |
|
31 | }); |
|
32 | ||
33 | Schema::create($config['user_has_permissions'], function (Blueprint $table) use ($config) { |
|
34 | $table->integer('user_id')->unsigned(); |