@@ -13,7 +13,7 @@ |
||
13 | 13 | */ |
14 | 14 | public function up() |
15 | 15 | { |
16 | - Schema::create('templates', function (Blueprint $table) { |
|
16 | + Schema::create('templates', function(Blueprint $table) { |
|
17 | 17 | $table->increments('id'); |
18 | 18 | $table->string('name'); |
19 | 19 | $table->string('slug'); |
@@ -13,7 +13,7 @@ |
||
13 | 13 | */ |
14 | 14 | public function up() |
15 | 15 | { |
16 | - Schema::create('sites', function (Blueprint $table) { |
|
16 | + Schema::create('sites', function(Blueprint $table) { |
|
17 | 17 | $table->increments('id'); |
18 | 18 | $table->string('name'); |
19 | 19 | $table->string('slug'); |
@@ -13,7 +13,7 @@ discard block |
||
13 | 13 | */ |
14 | 14 | public function up() |
15 | 15 | { |
16 | - Schema::table('pages', function (Blueprint $table) { |
|
16 | + Schema::table('pages', function(Blueprint $table) { |
|
17 | 17 | $table->string('page')->nullable()->default(null)->after('template_id'); |
18 | 18 | }); |
19 | 19 | } |
@@ -25,7 +25,7 @@ discard block |
||
25 | 25 | */ |
26 | 26 | public function down() |
27 | 27 | { |
28 | - Schema::table('pages', function (Blueprint $table) { |
|
28 | + Schema::table('pages', function(Blueprint $table) { |
|
29 | 29 | $table->dropColumn('page'); |
30 | 30 | }); |
31 | 31 | } |
@@ -13,7 +13,7 @@ |
||
13 | 13 | */ |
14 | 14 | public function up() |
15 | 15 | { |
16 | - Schema::create('page_blocks', function (Blueprint $table) { |
|
16 | + Schema::create('page_blocks', function(Blueprint $table) { |
|
17 | 17 | $table->increments('id'); |
18 | 18 | $table->integer('page_id'); |
19 | 19 | $table->string('name'); |
@@ -13,7 +13,7 @@ discard block |
||
13 | 13 | */ |
14 | 14 | public function up() |
15 | 15 | { |
16 | - Schema::table('users', function (Blueprint $table) { |
|
16 | + Schema::table('users', function(Blueprint $table) { |
|
17 | 17 | $table->string('token', 24)->unique()->after('remember_token'); |
18 | 18 | $table->tinyInteger('active')->default(0)->after('token'); |
19 | 19 | }); |
@@ -27,7 +27,7 @@ discard block |
||
27 | 27 | */ |
28 | 28 | public function down() |
29 | 29 | { |
30 | - Schema::table('users', function (Blueprint $table) { |
|
30 | + Schema::table('users', function(Blueprint $table) { |
|
31 | 31 | $table->dropColumn('token'); |
32 | 32 | $table->dropColumn('active'); |
33 | 33 | }); |
@@ -15,21 +15,21 @@ discard block |
||
15 | 15 | { |
16 | 16 | $tableNames = config('permission.table_names'); |
17 | 17 | |
18 | - Schema::create($tableNames['permissions'], function (Blueprint $table) { |
|
18 | + Schema::create($tableNames['permissions'], function(Blueprint $table) { |
|
19 | 19 | $table->increments('id'); |
20 | 20 | $table->string('name'); |
21 | 21 | $table->string('guard_name'); |
22 | 22 | $table->timestamps(); |
23 | 23 | }); |
24 | 24 | |
25 | - Schema::create($tableNames['roles'], function (Blueprint $table) { |
|
25 | + Schema::create($tableNames['roles'], function(Blueprint $table) { |
|
26 | 26 | $table->increments('id'); |
27 | 27 | $table->string('name'); |
28 | 28 | $table->string('guard_name'); |
29 | 29 | $table->timestamps(); |
30 | 30 | }); |
31 | 31 | |
32 | - Schema::create($tableNames['model_has_permissions'], function (Blueprint $table) use ($tableNames) { |
|
32 | + Schema::create($tableNames['model_has_permissions'], function(Blueprint $table) use ($tableNames) { |
|
33 | 33 | $table->unsignedInteger('permission_id'); |
34 | 34 | $table->morphs('model'); |
35 | 35 | |
@@ -41,7 +41,7 @@ discard block |
||
41 | 41 | $table->primary(['permission_id', 'model_id', 'model_type']); |
42 | 42 | }); |
43 | 43 | |
44 | - Schema::create($tableNames['model_has_roles'], function (Blueprint $table) use ($tableNames) { |
|
44 | + Schema::create($tableNames['model_has_roles'], function(Blueprint $table) use ($tableNames) { |
|
45 | 45 | $table->unsignedInteger('role_id'); |
46 | 46 | $table->morphs('model'); |
47 | 47 | |
@@ -53,7 +53,7 @@ discard block |
||
53 | 53 | $table->primary(['role_id', 'model_id', 'model_type']); |
54 | 54 | }); |
55 | 55 | |
56 | - Schema::create($tableNames['role_has_permissions'], function (Blueprint $table) use ($tableNames) { |
|
56 | + Schema::create($tableNames['role_has_permissions'], function(Blueprint $table) use ($tableNames) { |
|
57 | 57 | $table->unsignedInteger('permission_id'); |
58 | 58 | $table->unsignedInteger('role_id'); |
59 | 59 |
@@ -13,7 +13,7 @@ |
||
13 | 13 | */ |
14 | 14 | public function up() |
15 | 15 | { |
16 | - Schema::create('modules', function (Blueprint $table) { |
|
16 | + Schema::create('modules', function(Blueprint $table) { |
|
17 | 17 | $table->increments('id'); |
18 | 18 | $table->string('name'); |
19 | 19 | $table->string('slug'); |
@@ -13,7 +13,7 @@ discard block |
||
13 | 13 | */ |
14 | 14 | public function up() |
15 | 15 | { |
16 | - Schema::table('repeaters', function (Blueprint $table) { |
|
16 | + Schema::table('repeaters', function(Blueprint $table) { |
|
17 | 17 | $table->string('url')->nullable()->default(null)->after('slug'); |
18 | 18 | $table->string('page')->nullable()->default('default')->after('url'); |
19 | 19 | }); |
@@ -27,7 +27,7 @@ discard block |
||
27 | 27 | */ |
28 | 28 | public function down() |
29 | 29 | { |
30 | - Schema::table('repeaters', function (Blueprint $table) { |
|
30 | + Schema::table('repeaters', function(Blueprint $table) { |
|
31 | 31 | $table->dropColumn('url'); |
32 | 32 | $table->dropColumn('page'); |
33 | 33 | }); |
@@ -13,7 +13,7 @@ |
||
13 | 13 | */ |
14 | 14 | public function up() |
15 | 15 | { |
16 | - Schema::create('repeaters', function (Blueprint $table) { |
|
16 | + Schema::create('repeaters', function(Blueprint $table) { |
|
17 | 17 | $table->increments('id'); |
18 | 18 | $table->string('slug'); |
19 | 19 | $table->longText('json'); |