protected function forFeatures() : array
	{
		return Collection::make($this->allowed)->mapWithKeys(function ($feature) {
        	return [
        		$feature => array_count_values($this->features()[$feature])
        	];
        })->all();
	}
protected function forFeatures() : array
	{
		return Collection::make($this->allowed)->mapWithKeys(function ($feature) {
        	return [
        		$feature => array_count_values($this->features()[$feature])
        	];
        })->all();
	}
protected function forFeatures ( ) : array { return Collection :: make ( $ this -> allowed ) -> mapWithKeys ( function ( $ feature ) { return [ $ feature => array_count_values ( $ this -> features ( ) [ $ feature ] ) ] ; } ) -> all ( ) ; }
Returns the mapped features with their quantities.

@return array
Returns the mapped features with their quantities .