Insert input Data And Compare Data Available Or not in the database
$health = $request->input('health');
$tran = $request->input('transportation');
$smoke = $request->input('smoke');
$trial = Trial::select(array('health' => $health, 'transportation' => $tran,'smoke' => $smoke));
//dd($trial);
if(!isset($trial)){
return view('home');
} else{
return view('patient-home.trialresult',compact('health','tran','smoke'));
}
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire