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

        if (! $this->getOption('all')) {
            $assets = array_filter($assets, function ($asset) {
                return $asset->getArea() !== 'admin';
            });
        }

        $headers = ['Slug', 'Type', 'Path', 'Area', 'Placement', 'Execution', 'Version'];

        $dataset = array_map(function ($asset) {
            return [
                $asset->getSlug(),
                $asset->getType(),
                $asset->getArgument('path'),
                $asset->getArea(),
                $asset->getPlacement(),
                $asset->getExecution(),
                $asset->getArgument('version'),
            ];
        }, $assets);

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

        if (! $this->getOption('all')) {
            $assets = array_filter($assets, function ($asset) {
                return $asset->getArea() !== 'admin';
            });
        }

        $headers = ['Slug', 'Type', 'Path', 'Area', 'Placement', 'Execution', 'Version'];

        $dataset = array_map(function ($asset) {
            return [
                $asset->getSlug(),
                $asset->getType(),
                $asset->getArgument('path'),
                $asset->getArea(),
                $asset->getPlacement(),
                $asset->getExecution(),
                $asset->getArgument('version'),
            ];
        }, $assets);

        $this->table($headers, $dataset);
    }
public function assets ( ) { $ assets = $ this -> app -> make ( 'assets.collection' ) -> all ( ) ; if ( ! $ this -> getOption ( 'all' ) ) { $ assets = array_filter ( $ assets , function ( $ asset ) { return $ asset -> getArea ( ) !== 'admin' ; } ) ; } $ headers = [ 'Slug' , 'Type' , 'Path' , 'Area' , 'Placement' , 'Execution' , 'Version' ] ; $ dataset = array_map ( function ( $ asset ) { return [ $ asset -> getSlug ( ) , $ asset -> getType ( ) , $ asset -> getArgument ( 'path' ) , $ asset -> getArea ( ) , $ asset -> getPlacement ( ) , $ asset -> getExecution ( ) , $ asset -> getArgument ( 'version' ) , ] ; } , $ assets ) ; $ this -> table ( $ headers , $ dataset ) ; }
Show registered assets in theme area.

## OPTIONS

[--all]
: Show all assets from all areas.

## EXAMPLE

wp assely:show assets
Show registered assets in theme area .