April 2026 waren Wirtschaft Feedback

This commit is contained in:
Kevin Adametz 2026-04-10 17:14:38 +02:00
parent 02f2a4c23e
commit 9ce711d6b2
167 changed files with 25278 additions and 8518 deletions

View 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]
);
}
}
}