public function getAccesses()
    {
        return $this->abilities->mapWithKeys(function ($item, $key) {
            return [$key => $this->can($key)];
        });
    }
public function getAccesses()
    {
        return $this->abilities->mapWithKeys(function ($item, $key) {
            return [$key => $this->can($key)];
        });
    }
public function getAccesses ( ) { return $ this -> abilities -> mapWithKeys ( function ( $ item , $ key ) { return [ $ key => $ this -> can ( $ key ) ] ; } ) ; }
Get all ability.

@return Collection
Get all ability .