Created
December 27, 2022 05:58
-
-
Save faizalanwar/e9afb05ec93ef6735e3daadedefba9ce to your computer and use it in GitHub Desktop.
return with variable laravel
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
return redirect()->route('Merchant view')->with( ['merchant' => $merchant] ); | |
Try one of following | |
return redirect()->back()->with(compact('fee')); | |
or | |
return redirect()->back()->with('fee', $fee); | |
return redirect('/satker/print_warrent/' . $id)->with('success', 'Berhasil Membuat Surat.'); | |
or | |
return redirect()->route('/satker/print_warrent/') | |
->with(compact('id')) | |
->with('success','Berhasil Membuat Surat');; | |
or | |
return redirect()->route('/satker/print_warrent/') | |
->with('id', $id) | |
->with('success','Berhasil Membuat Surat');; | |
@if (Session::has('metadata')) | |
@endif |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment