*/ class AuthenticationTokenFactory extends Factory { /** * Define the model's default state. * * @return array */ public function definition(): array { return [ 'user_id' => User::factory(), 'application_id' => Application::factory(), 'token' => Str::random(64), 'issued_at' => now(), 'expires_at' => now()->addMonth(), 'ip' => fake()->ipv4(), 'user_agent' => fake()->userAgent(), ]; } }