Test Failed
Push — master ( 83b4ef...37cc60 )
by Gianluca
19:45 queued 19:45
created

TypesPaymentSeeder::run()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 21
Code Lines 11

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
eloc 11
c 1
b 0
f 1
dl 0
loc 21
rs 9.9
cc 1
nc 1
nop 0
1
<?php
2
3
namespace Mongi\Mongicommerce\Seedeers;
4
use Carbon\Carbon;
5
use Illuminate\Database\Seeder;
6
use Illuminate\Support\Facades\DB;
7
8
class TypesPaymentSeeder extends Seeder
9
{
10
    /**
11
     * Run the database seeds.
12
     *
13
     * @return void
14
     */
15
    public function run()
16
    {
17
        $data = [
18
            [
19
                'name' => 'Stripe',
20
                'created_at' => Carbon::now(),
21
                'updated_at' => Carbon::now()
22
            ],
23
            [
24
                'name' => 'Bonifico',
25
                'created_at' => Carbon::now(),
26
                'updated_at' => Carbon::now()
27
            ],
28
            [
29
                'name' => 'In Negozio',
30
                'created_at' => Carbon::now(),
31
                'updated_at' => Carbon::now()
32
            ],
33
34
        ];
35
        DB::table('payment_type')->insert($data);
36
    }
37
}
38