TODOList-Laravel / database /factories /ListItemFactory.php
Anuj-Panthri's picture
added tests for the TODOListController
d29be41
raw
history blame contribute delete
537 Bytes
<?php
namespace Database\Factories;
use Illuminate\Database\Eloquent\Factories\Factory;
/**
* @extends \Illuminate\Database\Eloquent\Factories\Factory<\App\Models\Model>
*/
class ListItemFactory extends Factory
{
/**
* Define the model's default state.
*
* @return array<string, mixed>
*/
public function definition(): array
{
return [
//
'name' => $this->faker->name(),
'is_complete' => $this->faker->numberBetween($min = 0, $max = 1),
];
}
}