Files
Test-Laravel-Routes/database/factories/TaskFactory.php
T

29 lines
487 B
PHP
Raw Normal View History

2021-10-17 10:07:19 +03:00
<?php
namespace Database\Factories;
use App\Models\Task;
use Illuminate\Database\Eloquent\Factories\Factory;
class TaskFactory extends Factory
{
/**
* The name of the factory's corresponding model.
*
* @var string
*/
protected $model = Task::class;
/**
* Define the model's default state.
*
* @return array
*/
public function definition()
{
return [
'name' => $this->faker->text(20),
];
}
}