public function sidebars()
    {
        $sidebars = $this->app->make('sidebars.collection')->all();

        $headers = ['Slug', 'Title', 'Description', 'Has widgets'];

        $dataset = array_map(function ($sidebar) {
            return [
                $sidebar->getSlug(),
                $sidebar->getSingular(),
                $sidebar->getArgument('description'),
                $sidebar->hasWidgets() ? 'true' : 'false',
            ];
        }, $sidebars);

        $this->table($headers, $dataset);
    }
public function sidebars()
    {
        $sidebars = $this->app->make('sidebars.collection')->all();

        $headers = ['Slug', 'Title', 'Description', 'Has widgets'];

        $dataset = array_map(function ($sidebar) {
            return [
                $sidebar->getSlug(),
                $sidebar->getSingular(),
                $sidebar->getArgument('description'),
                $sidebar->hasWidgets() ? 'true' : 'false',
            ];
        }, $sidebars);

        $this->table($headers, $dataset);
    }
public function sidebars ( ) { $ sidebars = $ this -> app -> make ( 'sidebars.collection' ) -> all ( ) ; $ headers = [ 'Slug' , 'Title' , 'Description' , 'Has widgets' ] ; $ dataset = array_map ( function ( $ sidebar ) { return [ $ sidebar -> getSlug ( ) , $ sidebar -> getSingular ( ) , $ sidebar -> getArgument ( 'description' ) , $ sidebar -> hasWidgets ( ) ? 'true' : 'false' , ] ; } , $ sidebars ) ; $ this -> table ( $ headers , $ dataset ) ; }
Show registered sidebars.

## EXAMPLE

wp assely:show sidebars
Show registered sidebars .