|
|
@ -50,7 +50,10 @@ class MasheController extends Controller |
|
|
|
} |
|
|
|
public function edit($id){ |
|
|
|
$mash = Mashe::where('id', (int)$id)->first(); |
|
|
|
return view('mashes.edit')->with('mash', $mash); |
|
|
|
$beers = Summarie::orderBy('name')->get(); |
|
|
|
$selected_beer = $mash->beer_id; |
|
|
|
$data = array('mash'=>$mash, 'beers'=>$beers, 'selected_beer'=>$selected_beer); |
|
|
|
return view('mashes.edit')->with($data); |
|
|
|
} |
|
|
|
|
|
|
|
public function update(Request $request, $id){ |
|
|
|