public function store() : array //check whether this method is required, otherwise, we have to rename to delte
	{
		$this->validate();

		if ($this->files()->isEmpty()) {
			return [];
		}

		return $this->files()->flatMap(function ($item) {
			$files[] = ['path' => $item->store($this->directory)];
			return $files;
		})->all();
	}
public function store() : array //check whether this method is required, otherwise, we have to rename to delte
	{
		$this->validate();

		if ($this->files()->isEmpty()) {
			return [];
		}

		return $this->files()->flatMap(function ($item) {
			$files[] = ['path' => $item->store($this->directory)];
			return $files;
		})->all();
	}
public function store ( ) : array //check whether this method is required, otherwise, we have to rename to delte { $ this -> validate ( ) ; if ( $ this -> files ( ) -> isEmpty ( ) ) { return [ ] ; } return $ this -> files ( ) -> flatMap ( function ( $ item ) { $ files [ ] = [ 'path' => $ item -> store ( $ this -> directory ) ] ; return $ files ; } ) -> all ( ) ; }
Store the given pictures.

@return array
Store the given pictures .