src/Http/Controllers/RecordingController.php
public function toggle()
    {
        if ($this->cache->get('telescope:pause-recording')) {
            $this->cache->forget('telescope:pause-recording');
        } else {
            $this->cache->put('telescope:pause-recording', true, now()->addDays(30));
        }
    }
public function toggle()
    {
        if ($this->cache->get('telescope:pause-recording')) {
            $this->cache->forget('telescope:pause-recording');
        } else {
            $this->cache->put('telescope:pause-recording', true, now()->addDays(30));
        }
    }
public function toggle ( ) { if ( $ this -> cache -> get ( 'telescope:pause-recording' ) ) { $ this -> cache -> forget ( 'telescope:pause-recording' ) ; } else { $ this -> cache -> put ( 'telescope:pause-recording' , true , now ( ) -> addDays ( 30 ) ) ; } }
Toggle recording.

@return void
Toggle recording .