$model
$model : string
The name of the factory's corresponding model.
<?php
/**
* JingYao-backend
*
* @link https://gitee.com/wang-zhihui-release/jingyao-backend
* @apiDocument https://gitee.com/wang-zhihui-release/jingyao-backend/wikis/
*/
namespace Database\Factories;
use App\Models\HouseUserBind;
use Illuminate\Database\Eloquent\Factories\Factory;
class HouseUserBindFactory extends Factory
{
/**
* The name of the factory's corresponding model.
*
* @var string
*/
protected $model = HouseUserBind::class;
/**
* Define the model's default state.
*
* @return array
*/
public function definition()
{
return [
'id_card_number' => $this->faker->phoneNumber,
'user_name' => $this->faker->name,
];
}
}