taktik - laravel
This commit is contained in:
23
database/factories/CommentFactory.php
Normal file
23
database/factories/CommentFactory.php
Normal file
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
|
||||
namespace Database\Factories;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\Factory;
|
||||
|
||||
/**
|
||||
* @extends \Illuminate\Database\Eloquent\Factories\Factory<\App\Models\Comment>
|
||||
*/
|
||||
class CommentFactory extends Factory
|
||||
{
|
||||
/**
|
||||
* Define the model's default state.
|
||||
*
|
||||
* @return array<string, mixed>
|
||||
*/
|
||||
public function definition(): array
|
||||
{
|
||||
return [
|
||||
'content' => $this->faker->paragraphs(3, true),
|
||||
];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user