I want to change the name of pdf from "Name_Exemple.pdf"
to "FAB_Name_Exemple.pdf"
. Is there any way to do it?
PDF::Output($modal->title.'.pdf','D');
I want to change the name of pdf from "Name_Exemple.pdf"
to "FAB_Name_Exemple.pdf"
. Is there any way to do it?
PDF::Output($modal->title.'.pdf','D');
PDF::Output('FAB_' . $modal->title.'.pdf','D');
// update
PDF::Output('FAB ' . str_replace('_', ' ', $modal->title) . '.pdf','D');