Beispiel #1
0
 public function storeName(Request $request)
 {
     //
     $patient = Patient::firstOrNew(['name' => $request->input('name')]);
     $patient->name = $request->input('name');
     $patient->save();
     //echo $patient;
     return redirect()->route('questionNr', [$patient->name, 'questionNr' => 1]);
 }