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
721 B

  1. <?php
  2. /** @var \Illuminate\Database\Eloquent\Factory $factory */
  3. use App\Models\Work;
  4. use Faker\Generator as Faker;
  5. $factory->define(Work::class, function (Faker $faker) {
  6. $started_at = $faker->dateTime('now');
  7. $ended_at = $faker->dateTime('now');
  8. // $minute_sum = $ended_at->diffInMinutes($started_at);
  9. return [
  10. 'business_id' => $faker->numberBetween(1, 200),
  11. 'project_id' => $faker->numberBetween(1, 200),
  12. 'task_id' => $faker->numberBetween(1, 200),
  13. 'user_id' => $faker->numberBetween(1, 5000),
  14. 'message' => $faker->name,
  15. 'minute_sum' => $faker->numberBetween(100, 5000),
  16. 'started_at' => $started_at,
  17. 'ended_at' => $ended_at,
  18. ];
  19. });