feat: harden tenant settings and import pipeline
This commit is contained in:
32
database/factories/EmotionFactory.php
Normal file
32
database/factories/EmotionFactory.php
Normal file
@@ -0,0 +1,32 @@
|
||||
<?php
|
||||
|
||||
namespace Database\Factories;
|
||||
|
||||
use App\Models\Emotion;
|
||||
use Illuminate\Database\Eloquent\Factories\Factory;
|
||||
|
||||
class EmotionFactory extends Factory
|
||||
{
|
||||
protected $model = Emotion::class;
|
||||
|
||||
public function definition(): array
|
||||
{
|
||||
$name = ucfirst($this->faker->unique()->word());
|
||||
|
||||
return [
|
||||
'name' => [
|
||||
'en' => $name,
|
||||
'de' => $name,
|
||||
],
|
||||
'icon' => $this->faker->randomElement(['smile', 'heart', 'star', 'sparkles']),
|
||||
'color' => $this->faker->hexColor(),
|
||||
'description' => [
|
||||
'en' => $this->faker->sentence(),
|
||||
'de' => $this->faker->sentence(),
|
||||
],
|
||||
'sort_order' => $this->faker->numberBetween(0, 20),
|
||||
'is_active' => true,
|
||||
];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user