protected function view($viewName, $data = null, $module = null)
    {
        if ($data === null) {
            $data = $this->dis;
        }

        if ($module === null) {
            $module = $this->currentThemeName;
        }

        if(view()->exists($module . '::' . $viewName)) {
            return view($module . '::' . $viewName, $data);
        }
        return view($viewName, $data);
    }
protected function view($viewName, $data = null, $module = null)
    {
        if ($data === null) {
            $data = $this->dis;
        }

        if ($module === null) {
            $module = $this->currentThemeName;
        }

        if(view()->exists($module . '::' . $viewName)) {
            return view($module . '::' . $viewName, $data);
        }
        return view($viewName, $data);
    }
protected function view ( $ viewName , $ data = null , $ module = null ) { if ( $ data === null ) { $ data = $ this -> dis ; } if ( $ module === null ) { $ module = $ this -> currentThemeName ; } if ( view ( ) -> exists ( $ module . '::' . $ viewName ) ) { return view ( $ module . '::' . $ viewName , $ data ) ; } return view ( $ viewName , $ data ) ; }
Override method view of AbstractBase.
By now, we will get assets from theme if it exists.
@param $viewName
@param null $data
@param null|string $module
@return \Illuminate\Contracts\View\Factory|\Illuminate\View\View
Override method view of AbstractBase . By now we will get assets from theme if it exists .