|
@ -55,8 +55,8 @@ class YeastController extends Controller |
|
|
return redirect('/yeasts')->with('success', 'Yeast Added!'); |
|
|
return redirect('/yeasts')->with('success', 'Yeast Added!'); |
|
|
} |
|
|
} |
|
|
public function edit($id){ |
|
|
public function edit($id){ |
|
|
$grain = Grain::where('id', (int)$id)->first(); |
|
|
|
|
|
return view('grains.edit')->with('grain', $grain); |
|
|
|
|
|
|
|
|
$yeast = Yeast::where('id', (int)$id)->first(); |
|
|
|
|
|
return view('yeasts.edit')->with('yeast', $yeast); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
public function update(Request $request, $id){ |
|
|
public function update(Request $request, $id){ |
|
|