You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
538 B

  1. <?php
  2. /** @var \Illuminate\Database\Eloquent\Factory $factory */
  3. use App\Task;
  4. use Carbon\Carbon;
  5. use Faker\Generator as Faker;
  6. $factory->define(Task::class, function (Faker $faker) {
  7. return [
  8. 'business_id' => null,
  9. 'creator_id' => null,
  10. 'project_id' => null,
  11. 'user_id' => null,
  12. 'workflow_id' => null,
  13. 'name' => $faker->sentences(3, true),
  14. 'time' => null,
  15. 'cost' => 0,
  16. 'completed' => false,
  17. 'due_date' => Carbon::now()->toDateTimeString(),
  18. ];
  19. });