Files
getgreen-backend/database/seeders/PagesTableSeeder.php

58 lines
1.4 KiB
PHP
Executable File
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php
namespace Database\Seeders;
use Illuminate\Database\Seeder;
use App\Models\Page;
use Illuminate\Support\Str;
class PagesTableSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
Page::create([
'name' => [
'uz' => 'Biz haqimizda',
'ru' => 'О нас'
],
'slug' => Str::slug('about'),
'body' => [
'uz' => 'content uz',
'ru' => 'content ru'
],
'type' => 1
]);
Page::create([
'name' => [
'uz' => 'Policy',
'ru' => 'Пользовательское соглашение'
],
'slug' => Str::slug('Пользовательское соглашение'),
'body' => [
'uz' => 'content uz',
'ru' => 'content ru'
],
'type' => 2
]);
Page::create([
'name' => [
'uz' => 'Yetkazib berish qoidalari',
'ru' => 'Правила доставки'
],
'slug' => Str::slug('Правила доставки'),
'body' => [
'uz' => 'content uz',
'ru' => 'content ru'
],
'type' => 3
]);
}
}