You've already forked Atomcms-edit
Initial commit
This commit is contained in:
+38
@@ -0,0 +1,38 @@
|
||||
<?php
|
||||
|
||||
namespace Database\Seeders;
|
||||
|
||||
use App\Models\Help\WebsiteRuleCategory;
|
||||
use Illuminate\Database\Seeder;
|
||||
|
||||
class WebsiteRuleCategorySeeder extends Seeder
|
||||
{
|
||||
public function run(): void
|
||||
{
|
||||
$categories = [
|
||||
[
|
||||
'name' => 'General Rules',
|
||||
'description' => 'The general rules of the hotel',
|
||||
'badge' => 'hotel-icon',
|
||||
'created_at' => now(),
|
||||
'updated_at' => now(),
|
||||
],
|
||||
[
|
||||
'name' => 'Account Rules',
|
||||
'description' => 'The general account rules on Habbo',
|
||||
'badge' => 'hotel-icon',
|
||||
'created_at' => now(),
|
||||
'updated_at' => now(),
|
||||
],
|
||||
[
|
||||
'name' => 'Hotel',
|
||||
'description' => 'Hotel rules & guidelines',
|
||||
'badge' => 'hotel-icon',
|
||||
'created_at' => now(),
|
||||
'updated_at' => now(),
|
||||
],
|
||||
];
|
||||
|
||||
WebsiteRuleCategory::upsert($categories, ['name']);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user