/** * Store a newly created resource in storage. * * @param \Illuminate\Http\Request $request * @return \Illuminate\Http\Response */ public function store(DoctorRequest $request) { // $doctor = new Doctor($request->all()); $doctor->save(); return redirect('pis/doctor'); }
/** * Store a newly created resource in storage. * * @return Response */ public function store(DoctorRequest $Request) { patientHistory::create($Request->all()); $patient = Patient::all(); return view('doctor.dashDoctor', compact('patient')); }