I have a function to show PDF . its triggered by click button to show/download pdf .
this function can show/displayed this data (before download) if i using php artisan serve , but now i not using php artisan serve because of BUG on my datatables , so i using XAMPP .
if i clicking button to download ,its not displaying data, its download automaticly .
how i can solved this ?
public function PDF(Request $request,$id){
$users = User::findOrFail($id);
$pdf = PDF::loadView('admin.pdf',['users' => $users]);
return $pdf->stream('Profile.pdf', array('Attachment'=>0));
}
its my controller