Working on MenuPlanController.php

This commit is contained in:
Sebastian Davaris 2020-06-26 13:55:04 +02:00
parent a84f1729f0
commit b56f3d2a34
2 changed files with 3 additions and 3 deletions

View File

@ -62,9 +62,9 @@ class MenuPlanController extends Controller
* @param int $id
* @return \Illuminate\Http\Response
*/
public function show($id)
public function show(MenuPlan $id)
{
return Response::detect("menuplan.show", [ "menuplans" => $id]);
return Response::detect("menuplans.show", [ "menuplan" => $id]);
}
/**

View File

@ -6,7 +6,7 @@
@endsection
@section("path")
<a href="{{ route('menu-plans.show') }}" class="text-white">Vis Menuplan</a> /
<a href="{{ route('menu-plans.show', [ "id" => $menuplan->id ]) }}" class="text-white">Vis Menuplan</a> /
@endsection
@section("content")