# you deleted your code, so i don't remeber what you wanted to do, but mostly you get collection and then loop over it
# $result = $this->fileModel->withTrashed()->where('path', $this->path)->where('name', $name)->where('disk', 'local')->first(); and check if it is trashed