src/Controllers/ScaffoldController.php
public function view($page, $id)
    {
        $this->authorize('view', $eloquent = app('scaffold.model'));

        app('scaffold.widget')->add(
            (new EloquentWidget($eloquent))
                ->setOrder(0)
                ->setTab(AbstractWidget::TAB_DEFAULT)
                ->setPlacement('model')
        );

        return view(app('scaffold.template')->view('index'), [
            'item' => $eloquent,
        ]);
    }
public function view($page, $id)
    {
        $this->authorize('view', $eloquent = app('scaffold.model'));

        app('scaffold.widget')->add(
            (new EloquentWidget($eloquent))
                ->setOrder(0)
                ->setTab(AbstractWidget::TAB_DEFAULT)
                ->setPlacement('model')
        );

        return view(app('scaffold.template')->view('index'), [
            'item' => $eloquent,
        ]);
    }
public function view ( $ page , $ id ) { $ this -> authorize ( 'view' , $ eloquent = app ( 'scaffold.model' ) ) ; app ( 'scaffold.widget' ) -> add ( ( new EloquentWidget ( $ eloquent ) ) -> setOrder ( 0 ) -> setTab ( AbstractWidget :: TAB_DEFAULT ) -> setPlacement ( 'model' ) ) ; return view ( app ( 'scaffold.template' ) -> view ( 'index' ) , [ 'item' => $ eloquent , ] ) ; }
View resource.

@param $page
@param $id

@return \Illuminate\View\View
View resource .