first(); $user = User::inRandomOrder()->whereHas('agent')->first(); $agent = $user->agent; return [ 'order_id' => $order->id, 'from_user_id' => $order->user_id, 'user_id' => $user->id, 'role' => $agent->slug . '-' . $agent->sort, 'role_name' => $agent->name, 'growth_value' => 0, 'ratio' => 0, 'money' => $this->faker->randomFloat(2, 0, 1), ]; } }