Fix edit siden

This commit is contained in:
Neerholt 2020-06-29 08:22:07 +02:00
parent 7d13933ea7
commit b1ae0f0964
2 changed files with 3 additions and 3 deletions

View File

@ -75,8 +75,8 @@ class MenuPlanController extends Controller
*/ */
public function edit($id) public function edit($id)
{ {
$editLink = MenuPlan::find($id); $menuplan = MenuPlan::find($id);
return Response::detect("menuplans.edit", ["menuPlans" => $editLink]); return Response::detect("menuplans.edit", ["menuplan" => $menuplan]);
} }
/** /**

View File

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