src/Cache.php
public function checkTtlNeedsChanged($ttl)
    {
        $app_version = explode('.', app()->version());

        if (((int) $app_version[0] == 5 && (int) $app_version[1] >= 8) || $app_version[0] > 5) {
            return config('larecipe.cache.period') * 60;
        }

        return $ttl;
    }
public function checkTtlNeedsChanged($ttl)
    {
        $app_version = explode('.', app()->version());

        if (((int) $app_version[0] == 5 && (int) $app_version[1] >= 8) || $app_version[0] > 5) {
            return config('larecipe.cache.period') * 60;
        }

        return $ttl;
    }
public function checkTtlNeedsChanged ( $ ttl ) { $ app_version = explode ( '.' , app ( ) -> version ( ) ) ; if ( ( ( int ) $ app_version [ 0 ] == 5 && ( int ) $ app_version [ 1 ] >= 8 ) || $ app_version [ 0 ] > 5 ) { return config ( 'larecipe.cache.period' ) * 60 ; } return $ ttl ; }
Checks if minutes need to be changed to seconds

@param $ttl
@return float|int
Checks if minutes need to be changed to seconds