protected function getPackageInformation($package)
    {
        $location = ($package['location'] === 'local') ? 'Local' : 'Vendor';

        $type = Str::title($package['type']);

        if ($this->packages->isEnabled($package['slug'])) {
            $status = 'Enabled';
        } else {
            $status = 'Disabled';
        }

        return array(
            'name'     => $package['name'],
            'slug'     => $package['slug'],
            'order'    => $package['order'],
            'location' => $location,
            'type'     => $type,
            'status'   => $status,
        );
    }
protected function getPackageInformation($package)
    {
        $location = ($package['location'] === 'local') ? 'Local' : 'Vendor';

        $type = Str::title($package['type']);

        if ($this->packages->isEnabled($package['slug'])) {
            $status = 'Enabled';
        } else {
            $status = 'Disabled';
        }

        return array(
            'name'     => $package['name'],
            'slug'     => $package['slug'],
            'order'    => $package['order'],
            'location' => $location,
            'type'     => $type,
            'status'   => $status,
        );
    }
protected function getPackageInformation ( $ package ) { $ location = ( $ package [ 'location' ] === 'local' ) ? 'Local' : 'Vendor' ; $ type = Str :: title ( $ package [ 'type' ] ) ; if ( $ this -> packages -> isEnabled ( $ package [ 'slug' ] ) ) { $ status = 'Enabled' ; } else { $ status = 'Disabled' ; } return array ( 'name' => $ package [ 'name' ] , 'slug' => $ package [ 'slug' ] , 'order' => $ package [ 'order' ] , 'location' => $ location , 'type' => $ type , 'status' => $ status , ) ; }
Returns Package manifest information.

@param string $package

@return array
Returns Package manifest information .