Fix edit siden
This commit is contained in:
parent
7d13933ea7
commit
b1ae0f0964
|
@ -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]);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -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")
|
||||||
|
|
Loading…
Reference in New Issue