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

            $table->sortable();
            $table->searchable(['name']);

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

            // Add columns.
            $table->column(trans('orchestra/foundation::label.name'), 'name');
        });
    }
public function table($model)
    {
        return $this->table->of('control.roles', function (TableGrid $table) use ($model) {
            // attach Model and set pagination option to true.
            $table->with($model)->paginate(true);

            $table->sortable();
            $table->searchable(['name']);

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

            // Add columns.
            $table->column(trans('orchestra/foundation::label.name'), 'name');
        });
    }
public function table ( $ model ) { return $ this -> table -> of ( 'control.roles' , function ( TableGrid $ table ) use ( $ model ) { // attach Model and set pagination option to true. $ table -> with ( $ model ) -> paginate ( true ) ; $ table -> sortable ( ) ; $ table -> searchable ( [ 'name' ] ) ; $ table -> layout ( 'orchestra/foundation::components.table' ) ; // Add columns. $ table -> column ( trans ( 'orchestra/foundation::label.name' ) , 'name' ) ; } ) ; }
View table generator for Orchestra\Model\Role.

@param  \Orchestra\Model\Role|\Illuminate\Pagination\Paginator  $model

@return \Orchestra\Contracts\Html\Table\Builder
View table generator for Orchestra \ Model \ Role .