can someone fix my code
this for my Route
Route::post('/ViewFile/{nama_file}', 'HSEController@getDownloadFile')->name('DownloadFile');
this for my View
<a href="{{ route('DownloadFile', $temuan->file) }}" target="_blank">File Lamp</a>
and this for my controller
public function ViewFile($nama_file)
{
$file= public_path("/files/".$nama_file);
$headers = [
'Content-Type' => 'application/pdf',
'Content-Disposition' => 'inline; '.$nama_file,
];
return response()->file($file, $headers);
}
I used that code and the result is file always downloading, I want to change to open in my browser,