ShopTableSeeder::run()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 33
Code Lines 25

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 25
nc 1
nop 0
dl 0
loc 33
rs 9.52
c 1
b 0
f 0
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
}