protected function currentPictures($current)
	{
		if (is_string($current) || is_null($current) || count($current) == 0){
			return ['id' => null, 'path' => $current];
		}

		return $current->map(function ($item) {
			$array = [
				'id' => $item['id'],
				'path' => $item['path']
			];

			return $array;
		})->all();
	}
protected function currentPictures($current)
	{
		if (is_string($current) || is_null($current) || count($current) == 0){
			return ['id' => null, 'path' => $current];
		}

		return $current->map(function ($item) {
			$array = [
				'id' => $item['id'],
				'path' => $item['path']
			];

			return $array;
		})->all();
	}
protected function currentPictures ( $ current ) { if ( is_string ( $ current ) || is_null ( $ current ) || count ( $ current ) == 0 ) { return [ 'id' => null , 'path' => $ current ] ; } return $ current -> map ( function ( $ item ) { $ array = [ 'id' => $ item [ 'id' ] , 'path' => $ item [ 'path' ] ] ; return $ array ; } ) -> all ( ) ; }
Map the current pictures.

@param  array $current

@return array
Map the current pictures .