can i redirect after return . please see my code

Posted 3 years ago by uddin9live

how can i redirect after run this functions block

public function getpdf($id) {

$mydata = easysub::find($id);

$pdf = \PDF::loadView('simple-draftpdf', compact('mydata'));
  return $pdf->download('simple-draft.pdf');


Please sign in or create an account to participate in this conversation.

Reply to

Use Markdown with GitHub-flavored code blocks.