@@ -10,9 +10,9 @@ |
||
| 10 | 10 | |
| 11 | 11 | class DetailTypeSeeder extends Seeder |
| 12 | 12 | { |
| 13 | - public function run(){ |
|
| 14 | - foreach (DetailTypes::all() as $detail) { |
|
| 15 | - DB::table('detail_type')->insert(['name' => $detail]); |
|
| 16 | - } |
|
| 17 | - } |
|
| 13 | + public function run(){ |
|
| 14 | + foreach (DetailTypes::all() as $detail) { |
|
| 15 | + DB::table('detail_type')->insert(['name' => $detail]); |
|
| 16 | + } |
|
| 17 | + } |
|
| 18 | 18 | } |
@@ -11,7 +11,7 @@ discard block |
||
| 11 | 11 | |
| 12 | 12 | class SettingsSeeder extends Seeder |
| 13 | 13 | { |
| 14 | - public function run(){ |
|
| 14 | + public function run(){ |
|
| 15 | 15 | $settings = new AdminSetting(); |
| 16 | 16 | $settings->shop_name = 'MongiCommerce'; |
| 17 | 17 | $settings->iban = 'DE79100110012626219557'; |
@@ -26,5 +26,5 @@ discard block |
||
| 26 | 26 | $settings->claim_email = '[email protected]'; |
| 27 | 27 | $settings->piva = '12345678901'; |
| 28 | 28 | $settings->save(); |
| 29 | - } |
|
| 29 | + } |
|
| 30 | 30 | } |
@@ -13,13 +13,13 @@ |
||
| 13 | 13 | |
| 14 | 14 | class ShopSingleProductController extends Controller |
| 15 | 15 | { |
| 16 | - public function page($id,$product_item_id = null){ |
|
| 17 | - $product = Product::find($id); |
|
| 18 | - $details_fields = Template::getDetailsFields($product); |
|
| 19 | - if($product_item_id != null){ |
|
| 20 | - $product = ProductItem::find($product_item_id); |
|
| 21 | - } |
|
| 16 | + public function page($id,$product_item_id = null){ |
|
| 17 | + $product = Product::find($id); |
|
| 18 | + $details_fields = Template::getDetailsFields($product); |
|
| 19 | + if($product_item_id != null){ |
|
| 20 | + $product = ProductItem::find($product_item_id); |
|
| 21 | + } |
|
| 22 | 22 | |
| 23 | - return view('mongicommerce.pages.single-product',compact('product','details_fields')); |
|
| 24 | - } |
|
| 23 | + return view('mongicommerce.pages.single-product',compact('product','details_fields')); |
|
| 24 | + } |
|
| 25 | 25 | } |