public function index($listener)
    {
        $eloquent = $this->model->newQuery();
        $table = $this->presenter->table($eloquent);

        $this->fireEvent('list', [$eloquent, $table]);

        // Once all event listening to `orchestra.list: role` is executed,
        // we can add we can now add the final column, edit and delete
        // action for roles.
        $this->presenter->actions($table);

        return $listener->indexSucceed(compact('eloquent', 'table'));
    }
public function index($listener)
    {
        $eloquent = $this->model->newQuery();
        $table = $this->presenter->table($eloquent);

        $this->fireEvent('list', [$eloquent, $table]);

        // Once all event listening to `orchestra.list: role` is executed,
        // we can add we can now add the final column, edit and delete
        // action for roles.
        $this->presenter->actions($table);

        return $listener->indexSucceed(compact('eloquent', 'table'));
    }
public function index ( $ listener ) { $ eloquent = $ this -> model -> newQuery ( ) ; $ table = $ this -> presenter -> table ( $ eloquent ) ; $ this -> fireEvent ( 'list' , [ $ eloquent , $ table ] ) ; // Once all event listening to `orchestra.list: role` is executed, // we can add we can now add the final column, edit and delete // action for roles. $ this -> presenter -> actions ( $ table ) ; return $ listener -> indexSucceed ( compact ( 'eloquent' , 'table' ) ) ; }
View list roles page.

@param  object  $listener

@return mixed
View list roles page .