File: /home/armgroup/libs/database/factories/ContactFactory.php
<?php
namespace Database\Factories;
use App\Models\Contact;
use Illuminate\Database\Eloquent\Factories\Factory;
class ContactFactory extends Factory
{
/**
* The name of the factory's corresponding model.
*
* @var string
*/
protected $model = Contact::class;
/**
* Define the model's default state.
*
* @return array
*/
public function definition()
{
return [
'name' => $this->faker->name,
'email' => $this->faker->unique()->email,
'mobile' => $this->faker->unique()->mobileNumber,
'message' => $this->faker->paragraph(20),
'checked' => rand(0, 1),
];
}
}