$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\Enum;
use Illuminate\Database\Eloquent\Factories\Factory;
class EnumFactory extends Factory
{
/**
* The name of the factory's corresponding model.
*
* @var string
*/
protected $model = Enum::class;
/**
* Define the model's default state.
*
* @return array
*/
public function definition()
{
return [
'title' => $this->faker->title,
'type' => 1,
];
}
}