define(Work::class, function (Faker $faker) { $started_at = $faker->dateTime('now'); $ended_at = $faker->dateTime('now'); // $minute_sum = $ended_at->diffInMinutes($started_at); return [ 'business_id' => $faker->numberBetween(1, 200), 'project_id' => $faker->numberBetween(1, 200), 'task_id' => $faker->numberBetween(1, 200), 'user_id' => $faker->numberBetween(1, 5000), 'message' => $faker->name, 'minute_sum' => $faker->numberBetween(100, 5000), 'started_at' => $started_at, 'ended_at' => $ended_at, ]; });