master

laravel/framework

Last updated at: 29/12/2023 09:20

Unlimited.php

TLDR

The Unlimited class extends the GlobalLimit class and represents an unlimited rate limit.

Classes

Unlimited

The Unlimited class extends the GlobalLimit class and represents an unlimited rate limit. It provides a constructor that initializes the limit to PHP_INT_MAX, which represents an unlimited value.

<?php

namespace Illuminate\Cache\RateLimiting;

class Unlimited extends GlobalLimit
{
    /**
     * Create a new limit instance.
     *
     * @return void
     */
    public function __construct()
    {
        parent::__construct(PHP_INT_MAX);
    }
}