getOptions() public method

public getOptions ( )
 /**
  * index.
  *
  * @param \Recca0120\Terminal\TerminalManager   $terminalManger
  * @param string                                $view
  *
  * @return mixed
  */
 public function index(TerminalManager $terminalManger, $view = 'index')
 {
     $csrfToken = null;
     if ($this->request->hasSession() === true) {
         $csrfToken = $this->request->session()->token();
     }
     $options = json_encode(array_merge($terminalManger->getOptions(), ['csrfToken' => $csrfToken]));
     $id = $view === 'panel' ? Str::random(30) : null;
     return $this->responseFactory->view('terminal::' . $view, compact('options', 'id'));
 }