You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
xshop/database/seeders/GroupSeeder.php

35 lines
794 B
PHTML

7 months ago
<?php
namespace Database\Seeders;
use App\Models\Group;
7 months ago
use Illuminate\Database\Console\Seeds\WithoutModelEvents;
use Illuminate\Database\Seeder;
class GroupSeeder extends Seeder
{
/**
* Run the database seeds.
*/
public function run(): void
{
//
$g1 = new Group();
$g1->name = __("News");
$g1->slug = 'news';
$g1->subtitle = __("All news about your e-commerce will be provided.");
$g1->save();
$g2 = new Group();
$g2->name = __("Articles");
$g2->subtitle = __("All articles about your e-commerce will be provided.");
$g2->slug = 'articles';
$g2->save();
$g3 = new Group();
$g3->name = __("About us");
$g3->slug = 'about-us';
$g3->save();
7 months ago
}
}