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.
|
|
<?php
/** @var \Illuminate\Database\Eloquent\Factory $factory */
use App\Models\Work; use Faker\Generator as Faker;
$factory->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, ]; });
|