protected function deleteRelatedFiles($deleting)
	{
		$files = $this->deletingFilesNamesList($deleting);

		foreach ($files as $file) {
			foreach (Storage::files($this->directory) as $relative) {
				if (strpos($relative, $file) !== false) {
					Storage::delete($relative);
				}
			}
		}
	}
protected function deleteRelatedFiles($deleting)
	{
		$files = $this->deletingFilesNamesList($deleting);

		foreach ($files as $file) {
			foreach (Storage::files($this->directory) as $relative) {
				if (strpos($relative, $file) !== false) {
					Storage::delete($relative);
				}
			}
		}
	}
protected function deleteRelatedFiles ( $ deleting ) { $ files = $ this -> deletingFilesNamesList ( $ deleting ) ; foreach ( $ files as $ file ) { foreach ( Storage :: files ( $ this -> directory ) as $ relative ) { if ( strpos ( $ relative , $ file ) !== false ) { Storage :: delete ( $ relative ) ; } } } }
Delete the files related to the ones to be delete.

@param Collection $deleting

@return void
Delete the files related to the ones to be delete .