faker->firefox, $this->faker->chrome, $this->faker->opera, $this->faker->safari, ]; $detector = new Agent(); return [ '_id' => app('nextId'), 'user_id' => '', 'token' => Str::random(60), 'agent' => app()->environment("testing")? 'Firefox': $detector->browser(Arr::random($browsers)), 'os' => app()->environment("testing")? 'Ubuntu': $detector->platform(Arr::random($browsers)), 'ip' => $this->faker->ipv4, 'city' => "Tehran", 'country' => "Iran", 'expires_at' => $this->faker->dateTimeBetween('+1 day', ' +6 month')->format('Y-m-d'), ]; } }