<?php
namespace Database\Factories;
use \App\Models\Admin;
use Illuminate\Support\Facades\Hash;
use Illuminate\Database\Eloquent\Factories\Factory;
class AdminFactory extends Factory
{
/**
* The name of the factory's corresponding model.
*
* @var string
*/
protected $model = Admin::class;
* Define the model's default state.
* @return array
public function definition()
return [
'email' => $this->faker->email,
'password' => Hash::make('password'),
'created_at' => $this->faker->dateTime,
'updated_at' => $this->faker->dateTime,
];
}