uawdijnntqw1x1x1
IP : 216.73.216.93
Hostname : panel.codeskitter.com
Kernel : Linux panel.codeskitter.com 6.8.0-100-generic #100-Ubuntu SMP PREEMPT_DYNAMIC Tue Jan 13 16:40:06 UTC 2026 x86_64
Disable Function : apache_child_terminate, apache_note, apache_setenv, define_syslog_variables, dl, link, opcache_get_status, openlog, pcntl_exec, pcntl_fork, pcntl_setpriority, popen, posix_getpwuid, posix_kill, posix_mkfifo, posix_setpgid, posix_setsid, posix_setuid
OS : Linux
PATH:
/
home
/
users
/
unlimited
/
www
/
learnoid.codeskitter.site
/
database
/
factories
/
BlogFactory.php
/
/
<?php namespace Database\Factories; use App\Enum\MediaTypeEnum; use App\Models\Media; use App\Repositories\UserRepository; use Illuminate\Database\Eloquent\Factories\Factory; /** * @extends \Illuminate\Database\Eloquent\Factories\Factory<\App\Models\Blog> */ class BlogFactory extends Factory { /** * Define the model's default state. * * @return array<string, mixed> */ public function definition(): array { $description = []; for ($i = 0; $i < 2; $i++) { $randomText = fake()->text(1000); $sentence1 = fake()->sentence(); $sentence2 = fake()->sentence(); $sentence3 = fake()->sentence(); $sentence4 = fake()->sentence(); $sentence5 = fake()->sentence(); $description[] = [ 'heading' => fake()->sentence(5), 'body' => " <p>$randomText</p> ", ]; $description[] = [ 'heading' => fake()->sentence(5), 'body' => " <ul> <li>$sentence1</li> <li>$sentence2</li> <li>$sentence3</li> <li>$sentence4</li> <li>$sentence5</li> </ul> ", ]; } return [ 'user_id' => UserRepository::getAll()->random()->id, 'media_id' => Media::factory()->create(['type' => MediaTypeEnum::IMAGE])->id, 'title' => fake()->sentence(), 'description' => json_encode($description), 'status' => fake()->boolean(), ]; } }
/home/users/unlimited/www/learnoid.codeskitter.site/database/factories/BlogFactory.php