classes/Controllers/Base.php
public function create()
    {
        // Look for overriden views
        $this->overrideViews();

        // Pass validation through
        Former::withRules($this->getRules());

        // Initialize localization
        with($localize = new Localize)
            ->model($this->model)
            ->title(Str::singular($this->title));

        // Make the sidebar
        $sidebar = new Sidebar;
        if (!$localize->hidden()) {
            $sidebar->addToEnd($localize);
        }

        // Render view
        return $this->populateView($this->show_view, [
            'item' => null,
            'localize' => $localize,
            'sidebar' => $sidebar,
            'parent_id' => $this->parent ? $this->parent->getKey() : null,
        ]);
    }
public function create()
    {
        // Look for overriden views
        $this->overrideViews();

        // Pass validation through
        Former::withRules($this->getRules());

        // Initialize localization
        with($localize = new Localize)
            ->model($this->model)
            ->title(Str::singular($this->title));

        // Make the sidebar
        $sidebar = new Sidebar;
        if (!$localize->hidden()) {
            $sidebar->addToEnd($localize);
        }

        // Render view
        return $this->populateView($this->show_view, [
            'item' => null,
            'localize' => $localize,
            'sidebar' => $sidebar,
            'parent_id' => $this->parent ? $this->parent->getKey() : null,
        ]);
    }
public function create ( ) { // Look for overriden views $ this -> overrideViews ( ) ; // Pass validation through Former :: withRules ( $ this -> getRules ( ) ) ; // Initialize localization with ( $ localize = new Localize ) -> model ( $ this -> model ) -> title ( Str :: singular ( $ this -> title ) ) ; // Make the sidebar $ sidebar = new Sidebar ; if ( ! $ localize -> hidden ( ) ) { $ sidebar -> addToEnd ( $ localize ) ; } // Render view return $ this -> populateView ( $ this -> show_view , [ 'item' => null , 'localize' => $ localize , 'sidebar' => $ sidebar , 'parent_id' => $ this -> parent ? $ this -> parent -> getKey ( ) : null , ] ) ; }
Show the create form.  Sets view via the layout.

@return Illuminate\Contracts\View\Factory
Show the create form . Sets view via the layout .