You've already forked Epicnabbo-Catalogus-Updated-Daily
🆙 Add fixed cms 🆙
This commit is contained in:
@@ -0,0 +1,37 @@
|
||||
<?php
|
||||
|
||||
namespace Database\Seeders;
|
||||
|
||||
use App\Models\Community\RareValue\WebsiteRareValueCategory;
|
||||
use Illuminate\Database\Seeder;
|
||||
|
||||
class WebsiteRareValuesCategorySeeder extends Seeder
|
||||
{
|
||||
public function run(): void
|
||||
{
|
||||
$categories = [
|
||||
[
|
||||
'name' => 'Limited Edition',
|
||||
'badge' => 'hotel-icon',
|
||||
'priority' => 1,
|
||||
],
|
||||
[
|
||||
'name' => 'Ultra rares',
|
||||
'badge' => 'hotel-icon',
|
||||
'priority' => 2,
|
||||
],
|
||||
[
|
||||
'name' => 'Super rares',
|
||||
'badge' => 'hotel-icon',
|
||||
'priority' => 3,
|
||||
],
|
||||
[
|
||||
'name' => 'Regulars',
|
||||
'badge' => 'hotel-icon',
|
||||
'priority' => 4,
|
||||
],
|
||||
];
|
||||
|
||||
WebsiteRareValueCategory::upsert($categories, ['name'], ['name', 'badge', 'priority']);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user