public function table($model)
    {
        return $this->table->of('orchestra.users', function (TableGrid $table) use ($model) {
            // attach Model and set pagination option to true
            $table->with($model);
            $table->sortable($this->getSortableFields());

            $table->layout('orchestra/foundation::components.table');

            $this->prependTableColumns($model, $table);

            // Add columns
            $table->column('fullname')
                ->label(trans('orchestra/foundation::label.users.fullname'))
                ->escape(false)
                ->value($this->getFullnameColumn());

            $table->column('email')
                ->label(trans('orchestra/foundation::label.users.email'));

            $this->appendTableColumns($model, $table);
        });
    }
public function table($model)
    {
        return $this->table->of('orchestra.users', function (TableGrid $table) use ($model) {
            // attach Model and set pagination option to true
            $table->with($model);
            $table->sortable($this->getSortableFields());

            $table->layout('orchestra/foundation::components.table');

            $this->prependTableColumns($model, $table);

            // Add columns
            $table->column('fullname')
                ->label(trans('orchestra/foundation::label.users.fullname'))
                ->escape(false)
                ->value($this->getFullnameColumn());

            $table->column('email')
                ->label(trans('orchestra/foundation::label.users.email'));

            $this->appendTableColumns($model, $table);
        });
    }
public function table ( $ model ) { return $ this -> table -> of ( 'orchestra.users' , function ( TableGrid $ table ) use ( $ model ) { // attach Model and set pagination option to true $ table -> with ( $ model ) ; $ table -> sortable ( $ this -> getSortableFields ( ) ) ; $ table -> layout ( 'orchestra/foundation::components.table' ) ; $ this -> prependTableColumns ( $ model , $ table ) ; // Add columns $ table -> column ( 'fullname' ) -> label ( trans ( 'orchestra/foundation::label.users.fullname' ) ) -> escape ( false ) -> value ( $ this -> getFullnameColumn ( ) ) ; $ table -> column ( 'email' ) -> label ( trans ( 'orchestra/foundation::label.users.email' ) ) ; $ this -> appendTableColumns ( $ model , $ table ) ; } ) ; }
Table View Generator for Orchestra\Model\User.

@param  \Orchestra\Model\User  $model

@return \Orchestra\Contracts\Html\Table\Builder
Table View Generator for Orchestra \ Model \ User .