April 2026 waren Wirtschaft Feedback
This commit is contained in:
parent
02f2a4c23e
commit
9ce711d6b2
167 changed files with 25278 additions and 8518 deletions
29
database/factories/PackagingItemFactory.php
Normal file
29
database/factories/PackagingItemFactory.php
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
<?php
|
||||
|
||||
namespace Database\Factories;
|
||||
|
||||
use App\Models\PackagingItem;
|
||||
use App\Models\PackagingMaterial;
|
||||
use Illuminate\Database\Eloquent\Factories\Factory;
|
||||
|
||||
/**
|
||||
* @extends Factory<PackagingItem>
|
||||
*/
|
||||
class PackagingItemFactory extends Factory
|
||||
{
|
||||
protected $model = PackagingItem::class;
|
||||
|
||||
public function definition(): array
|
||||
{
|
||||
return [
|
||||
'packaging_material_id' => PackagingMaterial::factory(),
|
||||
'supplier_id' => null,
|
||||
'name' => $this->faker->words(3, true),
|
||||
'category' => 'packaging',
|
||||
'weight_grams' => 0,
|
||||
'min_stock_alert' => null,
|
||||
'product_id' => null,
|
||||
'active' => true,
|
||||
];
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue