public function parameters($id, $widget)
    {
        $widget    = Widget::withoutGlobalScope('menu_assignment')->findOrNew($widget);
        $extension = $this->repository->findOrFail($id);
        $formView  = $extension->param('form');

        if (view()->exists($formView)) {
            return view($formView, compact('widget'));
        }

        return view('widgets.partials.none');
    }
public function parameters($id, $widget)
    {
        $widget    = Widget::withoutGlobalScope('menu_assignment')->findOrNew($widget);
        $extension = $this->repository->findOrFail($id);
        $formView  = $extension->param('form');

        if (view()->exists($formView)) {
            return view($formView, compact('widget'));
        }

        return view('widgets.partials.none');
    }
public function parameters ( $ id , $ widget ) { $ widget = Widget :: withoutGlobalScope ( 'menu_assignment' ) -> findOrNew ( $ widget ) ; $ extension = $ this -> repository -> findOrFail ( $ id ) ; $ formView = $ extension -> param ( 'form' ) ; if ( view ( ) -> exists ( $ formView ) ) { return view ( $ formView , compact ( 'widget' ) ) ; } return view ( 'widgets.partials.none' ) ; }
Get widget custom parameter form if any.

@param int $id
@param int $widget
@return \Illuminate\Contracts\View\Factory|\Illuminate\View\View|string
Get widget custom parameter form if any .