protected function makeResponse(string $template, array $vars = [])
    {
        if (request()->ajax()) {
            return $this->jsonOutput($vars);
        }

        return $this->renderOutput($template, $vars);
    }
protected function makeResponse(string $template, array $vars = [])
    {
        if (request()->ajax()) {
            return $this->jsonOutput($vars);
        }

        return $this->renderOutput($template, $vars);
    }
protected function makeResponse ( string $ template , array $ vars = [ ] ) { if ( request ( ) -> ajax ( ) ) { return $ this -> jsonOutput ( $ vars ) ; } return $ this -> renderOutput ( $ template , $ vars ) ; }
Make response description.

@param  string $template [description]
@param  array  $vars     [description]
@return mixed
Make response description .