protected function deleteFile(Request $request)
    {
        try {
            $file = $request->input('s');
            Storage::delete($file);

            return $this->notifySuccess($file . ' successfully deleted!');
        } catch (\ErrorException $e) {
            return $this->notifyError($e->getMessage());
        }
    }
protected function deleteFile(Request $request)
    {
        try {
            $file = $request->input('s');
            Storage::delete($file);

            return $this->notifySuccess($file . ' successfully deleted!');
        } catch (\ErrorException $e) {
            return $this->notifyError($e->getMessage());
        }
    }
protected function deleteFile ( Request $ request ) { try { $ file = $ request -> input ( 's' ) ; Storage :: delete ( $ file ) ; return $ this -> notifySuccess ( $ file . ' successfully deleted!' ) ; } catch ( \ ErrorException $ e ) { return $ this -> notifyError ( $ e -> getMessage ( ) ) ; } }
Delete a single file from request.

@param \Illuminate\Http\Request $request
@return \Illuminate\Http\JsonResponse
Delete a single file from request .