You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
587 B
27 lines
587 B
|
11 months ago
|
<?php
|
||
|
|
|
||
|
|
namespace Database\Factories;
|
||
|
|
|
||
|
|
use Illuminate\Database\Eloquent\Factories\Factory;
|
||
|
|
|
||
|
|
/**
|
||
|
|
* @extends \Illuminate\Database\Eloquent\Factories\Factory<\App\Models\Admin>
|
||
|
|
*/
|
||
|
|
class AdminFactory extends Factory
|
||
|
|
{
|
||
|
|
/**
|
||
|
|
* Define the model's default state.
|
||
|
|
*
|
||
|
|
* @return array<string, mixed>
|
||
|
|
*/
|
||
|
|
public function definition()
|
||
|
|
{
|
||
|
|
return [
|
||
|
|
'name' => $this->faker->name,
|
||
|
|
'email' => $this->faker->unique()->safeEmail,
|
||
|
|
'mobile' => $this->faker->phoneNumber,
|
||
|
|
'password' => bcrypt('password'),
|
||
|
|
];
|
||
|
|
}
|
||
|
|
}
|