public function create(Widget $widget)
    {
        $widget->extension_id = old('extension_id', Extension::WIDGET_WYSIWYG);
        $widget->template     = old('template', 'widgets.wysiwyg.raw');
        $widget->published    = old('published', true);

        return view('administrator.widgets.create', compact('widget'));
    }
public function create(Widget $widget)
    {
        $widget->extension_id = old('extension_id', Extension::WIDGET_WYSIWYG);
        $widget->template     = old('template', 'widgets.wysiwyg.raw');
        $widget->published    = old('published', true);

        return view('administrator.widgets.create', compact('widget'));
    }
public function create ( Widget $ widget ) { $ widget -> extension_id = old ( 'extension_id' , Extension :: WIDGET_WYSIWYG ) ; $ widget -> template = old ( 'template' , 'widgets.wysiwyg.raw' ) ; $ widget -> published = old ( 'published' , true ) ; return view ( 'administrator.widgets.create' , compact ( 'widget' ) ) ; }
Show widget form.

@param \Yajra\CMS\Entities\Widget $widget
@return \Illuminate\Contracts\View\Factory|\Illuminate\View\View
Show widget form .