how to view view docx, xls, xlsx in browser using laravel ? : **I am using the below code. but still it's downloading the files instead of viewing.**  


    public function viewFiles(StoreBusinessDevelopment $request, $file, $id){

        $businessDevelopment = BusinessDevelopment::select('created_by', 'rfp_id')
                                                    ->where('id', '=', $id)
                                                    ->get();

        $mimeType = File::mimeType(public_path('/uploads/'.$businessDevelopment[0]['created_by'].'/'.$businessDevelopment[0]['rfp_id'].'/'.$file));

        return response()->file(public_path('/uploads/'.$businessDevelopment[0]['created_by'].'/'.$businessDevelopment[0]['rfp_id'].'/'.$file),[
            'Content-Type' => $mimeType
        ]);
    }