public function add($key, $value, $minutes)
    {
        // If the laravel version is 5.8 or higher then convert minutes to seconds.
        if ($this->laravelVersion !== null
            && is_int($minutes)
            && version_compare($this->laravelVersion, '5.8', '>=')
        ) {
            $minutes = $minutes * 60;
        }

        $this->cache()->put($key, $value, $minutes);
    }
public function add($key, $value, $minutes)
    {
        // If the laravel version is 5.8 or higher then convert minutes to seconds.
        if ($this->laravelVersion !== null
            && is_int($minutes)
            && version_compare($this->laravelVersion, '5.8', '>=')
        ) {
            $minutes = $minutes * 60;
        }

        $this->cache()->put($key, $value, $minutes);
    }
public function add ( $ key , $ value , $ minutes ) { // If the laravel version is 5.8 or higher then convert minutes to seconds. if ( $ this -> laravelVersion !== null && is_int ( $ minutes ) && version_compare ( $ this -> laravelVersion , '5.8' , '>=' ) ) { $ minutes = $ minutes * 60 ; } $ this -> cache ( ) -> put ( $ key , $ value , $ minutes ) ; }
Add a new item into storage.

@param  string  $key
@param  mixed  $value
@param  int  $minutes

@return void
Add a new item into storage .