Beispiel #1
0
 protected function fakeVendorType()
 {
     $fakeVendorType = new VendorType();
     $fakeVendorType->vendor_type_name = "Fake Vendor Type";
     $fakeVendorType->save();
     return $fakeVendorType;
 }
 public function edit($id)
 {
     $info = Patient::findOrFail($id);
     $vendorTypeLists = VendorType::lists('name', 'id');
     $foods = Food::lists('name', 'id');
     $image = $info->image;
     return view('patient.edit', compact('info', 'vendorTypeLists', 'foods', 'selectedFoodList', 'image'));
 }