Fix edit siden
This commit is contained in:
parent
7d13933ea7
commit
b1ae0f0964
|
@ -75,8 +75,8 @@ class MenuPlanController extends Controller
|
|||
*/
|
||||
public function edit($id)
|
||||
{
|
||||
$editLink = MenuPlan::find($id);
|
||||
return Response::detect("menuplans.edit", ["menuPlans" => $editLink]);
|
||||
$menuplan = MenuPlan::find($id);
|
||||
return Response::detect("menuplans.edit", ["menuplan" => $menuplan]);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
@endsection
|
||||
|
||||
@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
|
||||
|
||||
@section("content")
|
||||
|
|
Loading…
Reference in New Issue