@@ -10,7 +10,7 @@ |
||
| 10 | 10 | |
| 11 | 11 | public function up() |
| 12 | 12 | { |
| 13 | - Schema::create('bedard_shop_products', function (Blueprint $table) { |
|
| 13 | + Schema::create('bedard_shop_products', function(Blueprint $table) { |
|
| 14 | 14 | $table->engine = 'InnoDB'; |
| 15 | 15 | $table->increments('id'); |
| 16 | 16 | $table->string('name')->default(''); |
@@ -8,7 +8,7 @@ |
||
| 8 | 8 | { |
| 9 | 9 | public function up() |
| 10 | 10 | { |
| 11 | - Schema::create('bedard_shop_categories', function (Blueprint $table) { |
|
| 11 | + Schema::create('bedard_shop_categories', function(Blueprint $table) { |
|
| 12 | 12 | $table->engine = 'InnoDB'; |
| 13 | 13 | $table->increments('id'); |
| 14 | 14 | $table->integer('parent_id')->unsigned()->nullable()->index(); |
@@ -8,7 +8,7 @@ |
||
| 8 | 8 | { |
| 9 | 9 | public function up() |
| 10 | 10 | { |
| 11 | - Schema::create('bedard_shop_discounts', function (Blueprint $table) { |
|
| 11 | + Schema::create('bedard_shop_discounts', function(Blueprint $table) { |
|
| 12 | 12 | $table->engine = 'InnoDB'; |
| 13 | 13 | $table->increments('id'); |
| 14 | 14 | $table->string('name')->default(''); |
@@ -8,7 +8,7 @@ |
||
| 8 | 8 | { |
| 9 | 9 | public function up() |
| 10 | 10 | { |
| 11 | - Schema::create('bedard_shop_prices', function (Blueprint $table) { |
|
| 11 | + Schema::create('bedard_shop_prices', function(Blueprint $table) { |
|
| 12 | 12 | $table->engine = 'InnoDB'; |
| 13 | 13 | $table->increments('id'); |
| 14 | 14 | $table->decimal('price', 10, 2)->unsigned(); |
@@ -39,10 +39,10 @@ |
||
| 39 | 39 | public function listExtendQuery($query) |
| 40 | 40 | { |
| 41 | 41 | $query->with([ |
| 42 | - 'categories' => function ($category) { |
|
| 42 | + 'categories' => function($category) { |
|
| 43 | 43 | return $category->select('name'); |
| 44 | 44 | }, |
| 45 | - 'products' => function ($product) { |
|
| 45 | + 'products' => function($product) { |
|
| 46 | 46 | return $product->select('name'); |
| 47 | 47 | }, |
| 48 | 48 | ])->selectStatus(); |
@@ -8,7 +8,7 @@ |
||
| 8 | 8 | { |
| 9 | 9 | public function up() |
| 10 | 10 | { |
| 11 | - Schema::create('bedard_shop_inventories', function (Blueprint $table) { |
|
| 11 | + Schema::create('bedard_shop_inventories', function(Blueprint $table) { |
|
| 12 | 12 | $table->engine = 'InnoDB'; |
| 13 | 13 | $table->increments('id'); |
| 14 | 14 | $table->integer('product_id')->unsigned()->index(); |
@@ -8,7 +8,7 @@ |
||
| 8 | 8 | { |
| 9 | 9 | public function up() |
| 10 | 10 | { |
| 11 | - Schema::create('bedard_shop_option_values', function (Blueprint $table) { |
|
| 11 | + Schema::create('bedard_shop_option_values', function(Blueprint $table) { |
|
| 12 | 12 | $table->engine = 'InnoDB'; |
| 13 | 13 | $table->increments('id'); |
| 14 | 14 | $table->string('name')->default(''); |
@@ -8,7 +8,7 @@ |
||
| 8 | 8 | { |
| 9 | 9 | public function up() |
| 10 | 10 | { |
| 11 | - Schema::create('bedard_shop_category_discount', function (Blueprint $table) { |
|
| 11 | + Schema::create('bedard_shop_category_discount', function(Blueprint $table) { |
|
| 12 | 12 | $table->engine = 'InnoDB'; |
| 13 | 13 | $table->integer('category_id')->unsigned()->nullable(); |
| 14 | 14 | $table->integer('discount_id')->unsigned()->nullable(); |
@@ -8,7 +8,7 @@ |
||
| 8 | 8 | { |
| 9 | 9 | public function up() |
| 10 | 10 | { |
| 11 | - Schema::create('bedard_shop_category_product', function (Blueprint $table) { |
|
| 11 | + Schema::create('bedard_shop_category_product', function(Blueprint $table) { |
|
| 12 | 12 | $table->engine = 'InnoDB'; |
| 13 | 13 | $table->integer('category_id')->unsigned()->nullable(); |
| 14 | 14 | $table->integer('product_id')->unsigned()->nullable(); |