@@ -44,10 +44,10 @@ |
||
44 | 44 | return ['postCount' => $this->post->all()->count()]; |
45 | 45 | } |
46 | 46 | |
47 | - /** |
|
48 | - * Get the widget type |
|
49 | - * @return string |
|
50 | - */ |
|
47 | + /** |
|
48 | + * Get the widget type |
|
49 | + * @return string |
|
50 | + */ |
|
51 | 51 | protected function options() |
52 | 52 | { |
53 | 53 | return [ |
@@ -12,7 +12,7 @@ |
||
12 | 12 | */ |
13 | 13 | public function up() |
14 | 14 | { |
15 | - Schema::create('blog__tags', function (Blueprint $table) { |
|
15 | + Schema::create('blog__tags', function(Blueprint $table) { |
|
16 | 16 | $table->engine = 'InnoDB'; |
17 | 17 | $table->increments('id'); |
18 | 18 | $table->timestamps(); |
@@ -12,7 +12,7 @@ |
||
12 | 12 | */ |
13 | 13 | public function up() |
14 | 14 | { |
15 | - Schema::create('blog__categories', function (Blueprint $table) { |
|
15 | + Schema::create('blog__categories', function(Blueprint $table) { |
|
16 | 16 | $table->engine = 'InnoDB'; |
17 | 17 | $table->increments('id'); |
18 | 18 | $table->timestamps(); |
@@ -12,7 +12,7 @@ |
||
12 | 12 | */ |
13 | 13 | public function up() |
14 | 14 | { |
15 | - Schema::create('blog__post_tag', function (Blueprint $table) { |
|
15 | + Schema::create('blog__post_tag', function(Blueprint $table) { |
|
16 | 16 | $table->engine = 'InnoDB'; |
17 | 17 | $table->integer('tag_id'); |
18 | 18 | $table->integer('post_id'); |
@@ -12,7 +12,7 @@ |
||
12 | 12 | */ |
13 | 13 | public function up() |
14 | 14 | { |
15 | - Schema::create('blog__post_translations', function (Blueprint $table) { |
|
15 | + Schema::create('blog__post_translations', function(Blueprint $table) { |
|
16 | 16 | $table->engine = 'InnoDB'; |
17 | 17 | $table->increments('id'); |
18 | 18 | $table->integer('post_id')->unsigned(); |
@@ -12,7 +12,7 @@ |
||
12 | 12 | */ |
13 | 13 | public function up() |
14 | 14 | { |
15 | - Schema::create('blog__category_translations', function (Blueprint $table) { |
|
15 | + Schema::create('blog__category_translations', function(Blueprint $table) { |
|
16 | 16 | $table->engine = 'InnoDB'; |
17 | 17 | $table->increments('id'); |
18 | 18 | $table->string('name'); |
@@ -11,7 +11,7 @@ discard block |
||
11 | 11 | */ |
12 | 12 | public function up() |
13 | 13 | { |
14 | - Schema::table('blog__posts', function (Blueprint $table) { |
|
14 | + Schema::table('blog__posts', function(Blueprint $table) { |
|
15 | 15 | $table->engine = 'InnoDB'; |
16 | 16 | $table->integer('status')->after('category_id')->default(1); |
17 | 17 | }); |
@@ -23,7 +23,7 @@ discard block |
||
23 | 23 | */ |
24 | 24 | public function down() |
25 | 25 | { |
26 | - Schema::table('blog__posts', function (Blueprint $table) { |
|
26 | + Schema::table('blog__posts', function(Blueprint $table) { |
|
27 | 27 | $table->dropColumn('status'); |
28 | 28 | }); |
29 | 29 | } |
@@ -12,7 +12,7 @@ |
||
12 | 12 | */ |
13 | 13 | public function up() |
14 | 14 | { |
15 | - Schema::create('blog__posts', function (Blueprint $table) { |
|
15 | + Schema::create('blog__posts', function(Blueprint $table) { |
|
16 | 16 | $table->engine = 'InnoDB'; |
17 | 17 | $table->increments('id'); |
18 | 18 | $table->integer('category_id')->index(); |
@@ -12,7 +12,7 @@ |
||
12 | 12 | */ |
13 | 13 | public function up() |
14 | 14 | { |
15 | - Schema::create('blog__tag_translations', function (Blueprint $table) { |
|
15 | + Schema::create('blog__tag_translations', function(Blueprint $table) { |
|
16 | 16 | $table->engine = 'InnoDB'; |
17 | 17 | $table->increments('id'); |
18 | 18 | $table->string('name'); |