class PaymentGatewayController1 extends Controller
{
public function getPaymentGatewayResponse(Request $request)
{
$input = request()->input();
Session::put(['email' => $input['email']]);
Session::save();
return view('elements.blocks.iframe2', ['response' => $input]);
}
}
Now I need this session value to another controller
class CheckoutController extends Controller
{
public function store(Request $request)
{
$input = request()->all();
$data = $request->session()->get('email');
dd($data);
}
}
it returns null value
Laravel Version 5.8
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire