feat: add breath colors
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
<?php
|
||||
|
||||
namespace Database\Seeders;
|
||||
|
||||
use App\Models\BreathingColor;
|
||||
use Illuminate\Database\Seeder;
|
||||
|
||||
class BreathingColorSeeder extends Seeder
|
||||
{
|
||||
public function run(): void
|
||||
{
|
||||
$colors = [
|
||||
['name' => 'آبی', 'order' => 1, 'colors' => ['#3ABDEB', '#553AEB']],
|
||||
['name' => 'صورتی', 'order' => 2, 'colors' => ['#CE4299', '#8628FF']],
|
||||
['name' => 'سبز', 'order' => 3, 'colors' => ['#5CC65C', '#00A489']],
|
||||
['name' => 'نارنجی', 'order' => 4, 'colors' => ['#E2990A', '#CC4B1C']],
|
||||
['name' => 'بنفش', 'order' => 5, 'colors' => ['#6829DD', '#1A50CC']],
|
||||
['name' => 'تکرنگ', 'order' => 6, 'colors' => ['#5360FC']],
|
||||
];
|
||||
|
||||
foreach ($colors as $c) {
|
||||
BreathingColor::firstOrCreate(['name' => $c['name']], $c);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user