v0.5.6 - Fixed Guide when destroying.

Added accountable in Event table to see who is the accountable for the event. Changed description field to CKEditor
This commit is contained in:
Anders
2020-08-06 14:47:22 +02:00
parent 7ea2208b4a
commit 708313a4b3
11 changed files with 156 additions and 41 deletions
@@ -123,13 +123,14 @@ class GuideController extends Controller
/**
* Remove the specified resource from storage.
*
* @param \App\Guide $guide
* @param Guide $guide
* @return \Illuminate\Http\Response
*/
public function destroy(Guide $guide)
public function destroy($guide)
{
$guide = MenuPlan::find($guide);
$guide = Guide::find($guide);
$guide->delete();
return redirect()->route("guides.index");
}
}