edit function
public function editNotice(Request $request,$id=null){
if(Session::has('idSession')){
if($request->isMethod('post')){
$data = $request->all();
$test = $data['death_name'];
Session::put('death_name',$test);
} else {
return redirect('/user')->with('flash_message_error','Please Login First to access..');
}
}
verifyEditNotice function
public function verifyEditNotice(Request $request,$id=null){
$new = Session::get('death_name');
echo $new;die;
}
here, i have saved death name in session in edit function and i want to retieve the session value in verify edit function. but the problem is when I retrieve it shows null. How do i get the value in another function..
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire