define(Fingerprint::class, function () use ($faker) { $os = [ $faker->windowsPlatformToken, $faker->linuxPlatformToken, $faker->macPlatformToken ]; $browsers = [ $faker->firefox, $faker->chrome, $faker->opera, $faker->safari, ]; $detector = new Jenssegers\Agent\Agent(); return [ 'user_id' => $faker->numberBetween(1, 1000), 'agent' => $detector->browser(Arr::random($browsers)), 'ip' => $faker->ipv4, 'os' => $detector->platform(Arr::random($browsers)), 'latitude' => $faker->latitude, 'longitude' => $faker->longitude, 'token' => Str::random(60), ]; });