mirror of https://github.com/4xmen/xshop.git
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.
30 lines
734 B
PHP
30 lines
734 B
PHP
<?php
|
|
|
|
namespace Database\Factories;
|
|
|
|
use App\Helpers\PersianFaker;
|
|
use Illuminate\Database\Eloquent\Factories\Factory;
|
|
|
|
/**
|
|
* @extends \Illuminate\Database\Eloquent\Factories\Factory<\App\Models\Customer>
|
|
*/
|
|
class CustomerFactory extends Factory
|
|
{
|
|
/**
|
|
* Define the model's default state.
|
|
*
|
|
* @return array<string, mixed>
|
|
*/
|
|
public function definition(): array
|
|
{
|
|
return [
|
|
'name' => $this->faker->name,
|
|
'mobile' => PersianFaker::mobile(),
|
|
'email' => $this->faker->unique()->email,
|
|
'password' => bcrypt('password'),
|
|
'credit' => 0,
|
|
'description' => __('Credit card:').PHP_EOL.PersianFaker::shetabCard(),
|
|
];
|
|
}
|
|
}
|