File: /var/www/html/sarvodayahospital/database/factories/BlogFactory.php
<?php
// phpcs:disable
namespace Database\Factories;
use Illuminate\Database\Eloquent\Factories\Factory;
class BlogFactory extends Factory
{
// phpcs:enable
/**
* Define the model's default state.
*
* @return array
*/
public function definition()
{
$faker = Faker::create('en_IN');
$title = $faker->sentence;
$slug = str_slug($title, '-');
return [
'Title' => $title,
'Slug'=> $slug,
'Description' => $faker->paragraph(),
'ShortDescription'=> $faker->paragraph(),
'Doctor' => $faker->name(),
'BlogDate' => $faker->iso8601(),
'published_at' => $faker->iso8601(),
'created_by' => $faker->name(),
'updated_by' => $faker->name(),
];
}
}