lundi 13 septembre 2021

Save input value in session and then print variable

is it possible to pass the value of an input with session? i need to pass the value 25 and then save to session

Ej:

Blade.php:

 <input type="hidden" name="idevento" value="25">

Controller:

 session(['variableName' => $request->input("idevento")]);

Then I get the value with:

$save_value = Session::get('variableName');

the problem is that it does not save the value, help pls



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire