| 45 |
lars |
1 |
<?php
|
|
|
2 |
|
|
|
3 |
namespace Database\Seeders;
|
|
|
4 |
|
|
|
5 |
use App\Models\Price;
|
|
|
6 |
use Illuminate\Database\Console\Seeds\WithoutModelEvents;
|
|
|
7 |
use Illuminate\Database\Seeder;
|
|
|
8 |
use Illuminate\Support\Facades\DB;
|
|
|
9 |
|
|
|
10 |
class PriceSeeder extends Seeder
|
|
|
11 |
{
|
|
|
12 |
/**
|
|
|
13 |
* Run the database seeds.
|
|
|
14 |
*
|
|
|
15 |
* @return void
|
|
|
16 |
*/
|
|
|
17 |
public function run(): void
|
|
|
18 |
{
|
|
|
19 |
/*Price::factory()->create( [
|
|
|
20 |
"item_id" => 115000,
|
|
|
21 |
"preis_index" => 1,
|
|
|
22 |
"preis" => 10.00,
|
|
|
23 |
"staffel" => 'a:5:{s:5:"preis";a:1:{i:0;i:10;}s:5:"menge";a:1:{i:0;s:1:"0";}s:8:"preisneu";a:1:{i:0;i:0;}s:8:"datefrom";a:1:{i:0;s:0:"";}s:6:"dateto";a:1:{i:0;s:0:"";}}'
|
|
|
24 |
] );
|
|
|
25 |
Price::factory()->create( [
|
|
|
26 |
"item_id" => 115001,
|
|
|
27 |
"preis_index" => 1,
|
|
|
28 |
"preis" => 20.00,
|
|
|
29 |
"staffel" => 'a:5:{s:5:"preis";a:1:{i:0;i:20;}s:5:"menge";a:1:{i:0;s:1:"0";}s:8:"preisneu";a:1:{i:0;i:0;}s:8:"datefrom";a:1:{i:0;s:0:"";}s:6:"dateto";a:1:{i:0;s:0:"";}}'
|
|
|
30 |
] );
|
|
|
31 |
Price::factory()->create( [
|
|
|
32 |
"item_id" => 115002,
|
|
|
33 |
"preis_index" => 1,
|
|
|
34 |
"preis" => 30.00,
|
|
|
35 |
"staffel" => 'a:5:{s:5:"preis";a:1:{i:0;i:30;}s:5:"menge";a:1:{i:0;s:1:"0";}s:8:"preisneu";a:1:{i:0;i:0;}s:8:"datefrom";a:1:{i:0;s:0:"";}s:6:"dateto";a:1:{i:0;s:0:"";}}'
|
|
|
36 |
] );
|
|
|
37 |
Price::factory()->create( [
|
|
|
38 |
"item_id" => 115003,
|
|
|
39 |
"preis_index" => 1,
|
|
|
40 |
"preis" => 40.00,
|
|
|
41 |
"staffel" => 'a:5:{s:5:"preis";a:1:{i:0;i:40;}s:5:"menge";a:1:{i:0;s:1:"0";}s:8:"preisneu";a:1:{i:0;i:0;}s:8:"datefrom";a:1:{i:0;s:0:"";}s:6:"dateto";a:1:{i:0;s:0:"";}}'
|
|
|
42 |
] );
|
|
|
43 |
Price::factory()->create( [
|
|
|
44 |
"item_id" => 115005,
|
|
|
45 |
"preis_index" => 1,
|
|
|
46 |
"preis" => 50.00,
|
|
|
47 |
"staffel" => 'a:5:{s:5:"preis";a:1:{i:0;i:50;}s:5:"menge";a:1:{i:0;s:1:"0";}s:8:"preisneu";a:1:{i:0;i:0;}s:8:"datefrom";a:1:{i:0;s:0:"";}s:6:"dateto";a:1:{i:0;s:0:"";}}'
|
|
|
48 |
] );*/
|
|
|
49 |
}
|
|
|
50 |
}
|