|
|
@ -64,6 +64,22 @@ class SummarieController extends Controller |
|
|
|
{ |
|
|
|
$beer->notes = $request->input('notes'); |
|
|
|
} |
|
|
|
if ($request->input('boil_volume')) |
|
|
|
{ |
|
|
|
$beer->boil_volume = $request->input('boil_volume'); |
|
|
|
} |
|
|
|
if ($request->input('ebc')) |
|
|
|
{ |
|
|
|
$beer->ebc = $request->input('ebc'); |
|
|
|
} |
|
|
|
if ($request->input('srm')) |
|
|
|
{ |
|
|
|
$beer->srm = $request->input('srm'); |
|
|
|
} |
|
|
|
if ($request->input('ph')) |
|
|
|
{ |
|
|
|
$beer->ph = $request->input('ph'); |
|
|
|
} |
|
|
|
$beer->save(); |
|
|
|
|
|
|
|
return redirect('/beers')->with('success', 'Beer Added'); |
|
|
@ -108,6 +124,22 @@ class SummarieController extends Controller |
|
|
|
{ |
|
|
|
$beer->notes = $request->input('notes'); |
|
|
|
} |
|
|
|
if ($request->input('boil_volume')) |
|
|
|
{ |
|
|
|
$beer->boil_volume = $request->input('boil_volume'); |
|
|
|
} |
|
|
|
if ($request->input('ebc')) |
|
|
|
{ |
|
|
|
$beer->ebc = $request->input('ebc'); |
|
|
|
} |
|
|
|
if ($request->input('srm')) |
|
|
|
{ |
|
|
|
$beer->srm = $request->input('srm'); |
|
|
|
} |
|
|
|
if ($request->input('ph')) |
|
|
|
{ |
|
|
|
$beer->ph = $request->input('ph'); |
|
|
|
} |
|
|
|
$beer->save(); |
|
|
|
|
|
|
|
return redirect('/beers')->with('success', 'Beer updated!'); |
|
|
|