Add products module #46
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
|
||||
namespace Database\Factories;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\Factory;
|
||||
|
||||
class UnitFactory extends Factory
|
||||
{
|
||||
public function definition(): array
|
||||
{
|
||||
return [
|
||||
'name' => $this->faker->unique()->randomElement([
|
||||
'Stück',
|
||||
'Stunden',
|
||||
'Tage',
|
||||
'pauschal'
|
||||
]),
|
||||
'symbol' => $this->faker->lexify('??'),
|
||||
];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user