ApiKey::TYPE_APPLICATION, 'identifier' => Str::random(ApiKey::IDENTIFIER_LENGTH), 'token' => $token ?: $token = encrypt(Str::random(ApiKey::KEY_LENGTH)), 'allowed_ips' => null, 'memo' => 'Test Function Key', 'created_at' => Carbon::now(), 'updated_at' => Carbon::now(), ]; } }