Cartalyst\Sentinel\Throttling\IlluminateThrottleRepository::secondsToFree PHP Méthode

secondsToFree() protected méthode

Returns the seconds to free based on the given throttle and the presented delay in seconds, by comparing it to now.
protected secondsToFree ( EloquentThrottle $throttle, integer $interval ) : integer
$throttle EloquentThrottle
$interval integer
Résultat integer
    protected function secondsToFree(EloquentThrottle $throttle, $interval)
    {
        return $throttle->created_at->addSeconds($interval)->diffInSeconds();
    }