You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
537 B
PHTML
25 lines
537 B
PHTML
9 months ago
|
<?php
|
||
|
|
||
|
namespace Database\Factories;
|
||
|
|
||
|
use App\Models\BlogPost;
|
||
|
use Illuminate\Database\Eloquent\Factories\Factory;
|
||
|
use Illuminate\Support\Carbon;
|
||
|
|
||
|
class BlogPostFactory extends Factory
|
||
|
{
|
||
|
protected $model = BlogPost::class;
|
||
|
|
||
|
public function definition(): array
|
||
|
{
|
||
|
return [
|
||
|
'title' => $this->faker->word(),
|
||
|
'article' => $this->faker->word(),
|
||
|
'location' => $this->faker->word(),
|
||
|
|
||
|
'created_at' => Carbon::now(),
|
||
|
'updated_at' => Carbon::now(),
|
||
|
];
|
||
|
}
|
||
|
}
|