Current File : /home/tradevaly/demo.tradevaly.com.bd/database/factories/BlogFactory.php |
<?php
namespace Database\Factories;
use App\Models\Blog;
use Illuminate\Database\Eloquent\Factories\Factory;
class BlogFactory extends Factory
{
/**
* The name of the factory's corresponding model.
*
* @var string
*/
protected $model = Blog::class;
/**
* Define the model's default state.
*
* @return array
*/
public function definition()
{
return [
'post_name' => $this->faker->name,
'post_description' => $this->faker->text
];
}
}