public function module($key)
    {
        if ( ! $this->core->modules()->has($key)) {
            abort(404, 'Module not loaded');
        }

        return $this->core->api()->response(
            $this->makeContainer(
                $this->core->modules()->getModulePermissions($key)
            )
        );
    }
public function module($key)
    {
        if ( ! $this->core->modules()->has($key)) {
            abort(404, 'Module not loaded');
        }

        return $this->core->api()->response(
            $this->makeContainer(
                $this->core->modules()->getModulePermissions($key)
            )
        );
    }
public function module ( $ key ) { if ( ! $ this -> core -> modules ( ) -> has ( $ key ) ) { abort ( 404 , 'Module not loaded' ) ; } return $ this -> core -> api ( ) -> response ( $ this -> makeContainer ( $ this -> core -> modules ( ) -> getModulePermissions ( $ key ) ) ) ; }
Returns available permissions for a single module.

@param $key
@return mixed
Returns available permissions for a single module .