ShopTableSeeder   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 35
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 26
dl 0
loc 35
rs 10
c 1
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A run() 0 33 1
1
<?php
2
3
use Illuminate\Database\Seeder;
4
use Illuminate\Database\Eloquent\Model;
5
use Hideyo\Ecommerce\Framework\Services\Shop\Entity\Shop as Shop;
6
7
class ShopTableSeeder extends Seeder
8
{
9
    public function run()
10
    {
11
        $shop = new Shop;
12
13
        DB::table($shop->getTable())->delete();
14
15
        $shop->title = 'hideyo';
16
        $shop->url = config()->get('app.url');
17
        $shop->secret_key = 'RQlqvrjpGWPVqY1gPerKstoO4X6xhGGE';
18
        $shop->active = 1;
19
        $shop->description = "description";
20
        $shop->currency_code = "EUR";
21
        $shop->thumbnail_widescreen_sizes = "100x100,200x200,500x500,800x800";
22
        $shop->thumbnail_square_sizes = "100x100,200x200,500x500,800x800"; 
23
        $shop->meta_title = "Hideyo - laravel e-commerce platform";
24
        $shop->meta_description = "Clean Laravel e-commerce platform for building your custom and unique webshop";     
25
        $shop->save();  
26
27
28
        $shop2 = new Shop;  
29
30
31
        $shop2->title = 'wholesale';
32
        $shop2->url = 'http://wholesaledemo.hideyo.io';
33
        $shop2->secret_key = 'RQlqvrjpGWPVqY1gPerKstoO4X6xhGGF';
34
        $shop2->active = 1;
35
        $shop2->description = "description";
36
        $shop2->currency_code = "EUR";
37
        $shop2->thumbnail_widescreen_sizes = "100x100,200x200,500x500,800x800";
38
        $shop2->thumbnail_square_sizes = "100x100,200x200,500x500,800x800"; 
39
        $shop2->meta_title = "Hideyo - laravel e-commerce platform";
40
        $shop2->meta_description = "Clean Laravel e-commerce platform for building your custom and unique webshop";     
41
        $shop2->save();  
42
43
44
    }
45
}