April 2026 waren Wirtschaft Feedback
This commit is contained in:
parent
02f2a4c23e
commit
9ce711d6b2
167 changed files with 25278 additions and 8518 deletions
49
database/seeders/InventoryStammdatenSeeder.php
Normal file
49
database/seeders/InventoryStammdatenSeeder.php
Normal file
|
|
@ -0,0 +1,49 @@
|
|||
<?php
|
||||
|
||||
namespace Database\Seeders;
|
||||
|
||||
use App\Models\Location;
|
||||
use App\Models\MaterialQuality;
|
||||
use App\Models\PackagingMaterial;
|
||||
use Illuminate\Database\Seeder;
|
||||
|
||||
class InventoryStammdatenSeeder extends Seeder
|
||||
{
|
||||
public function run(): void
|
||||
{
|
||||
$locations = ['Köln', 'Waldböl'];
|
||||
foreach ($locations as $name) {
|
||||
Location::query()->firstOrCreate(
|
||||
['name' => $name],
|
||||
['active' => true]
|
||||
);
|
||||
}
|
||||
|
||||
$qualities = [
|
||||
'konventionell',
|
||||
'bio kaltgepresst',
|
||||
'bio raffiniert',
|
||||
'konventionell kaltgepresst',
|
||||
'konventionell raffiniert',
|
||||
];
|
||||
foreach ($qualities as $pos => $name) {
|
||||
MaterialQuality::query()->firstOrCreate(
|
||||
['name' => $name],
|
||||
['pos' => $pos]
|
||||
);
|
||||
}
|
||||
|
||||
$materials = [
|
||||
'Glas',
|
||||
'Holz/Bambus',
|
||||
'Pappe/Papier',
|
||||
'Kunststoff',
|
||||
];
|
||||
foreach ($materials as $pos => $name) {
|
||||
PackagingMaterial::query()->firstOrCreate(
|
||||
['name' => $name],
|
||||
['pos' => $pos]
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue