Файловый менеджер - Редактировать - /home/clickysoft/public_html/travel-guru.clickysoft.net/travel-guru/database/factories/ArticleFactory.php
Назад
<?php namespace Database\Factories; use Illuminate\Database\Eloquent\Factories\Factory; use App\Models\Article; use App\Models\User; // Replace 'User' with your actual User model namespace use App\Models\ArticleCategory; // Replace 'ArticleCategory' with your actual ArticleCategory model namespace class ArticleFactory extends Factory { protected $model = Article::class; public function definition() { return [ 'title' => $this->faker->sentence, 'slug' => $this->faker->slug, 'short_description' => $this->faker->paragraph, 'long_description' => $this->faker->paragraphs(3, true), 'meta_description' => $this->faker->sentence, 'meta_keywords' => $this->faker->words(3, true), 'meta_abstract' => $this->faker->sentence, 'opengraph_title' => $this->faker->sentence, 'opengraph_description' => $this->faker->paragraph, 'status' => $this->faker->randomElement([0, 1]), 'is_page_builder' => $this->faker->randomElement([0, 1]), 'updated_by' => 1, 'category_id' => ArticleCategory::inRandomOrder()->first()->id, 'authored_by' => $this->faker->name, ]; } }
| ver. 1.4 |
Github
|
.
| PHP 8.1.29 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка