1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
namespace Mongi\Mongicommerce\Seedeers; |
4
|
|
|
|
5
|
|
|
use Carbon\Carbon; |
6
|
|
|
use Illuminate\Database\Seeder; |
7
|
|
|
use Illuminate\Support\Facades\DB; |
8
|
|
|
|
9
|
|
|
class StasusesOrderSeeder extends Seeder |
10
|
|
|
{ |
11
|
|
|
/** |
12
|
|
|
* Run the database seeds. |
13
|
|
|
* |
14
|
|
|
* @return void |
15
|
|
|
*/ |
16
|
|
|
public function run() |
17
|
|
|
{ |
18
|
|
|
$data = [ |
19
|
|
|
[ |
20
|
|
|
'name' => 'In preparazione', |
21
|
|
|
'color' => 'badge-warning', |
22
|
|
|
'created_at' => Carbon::now(), |
23
|
|
|
'updated_at' => Carbon::now() |
24
|
|
|
], |
25
|
|
|
[ |
26
|
|
|
'name' => 'Attesa di pagamento', |
27
|
|
|
'color' => 'badge-info', |
28
|
|
|
'created_at' => Carbon::now(), |
29
|
|
|
'updated_at' => Carbon::now() |
30
|
|
|
], |
31
|
|
|
[ |
32
|
|
|
'name' => 'consegnato al corriere', |
33
|
|
|
'color' => 'badge-primary', |
34
|
|
|
'created_at' => Carbon::now(), |
35
|
|
|
'updated_at' => Carbon::now() |
36
|
|
|
], |
37
|
|
|
[ |
38
|
|
|
'name' => 'Completato', |
39
|
|
|
'color' => 'badge-success', |
40
|
|
|
'created_at' => Carbon::now(), |
41
|
|
|
'updated_at' => Carbon::now() |
42
|
|
|
], |
43
|
|
|
[ |
44
|
|
|
'name' => 'Rifiutato', |
45
|
|
|
'color' => 'badge-danger', |
46
|
|
|
'created_at' => Carbon::now(), |
47
|
|
|
'updated_at' => Carbon::now() |
48
|
|
|
], |
49
|
|
|
]; |
50
|
|
|
DB::table('statuses_order')->insert($data); |
51
|
|
|
} |
52
|
|
|
} |
53
|
|
|
|