Http/Controllers/Admin/GroupFieldsController.php
public function edit(Group $group)
    {
        $fields     = $group->getListFields();
        $locations  = Rule::where('group_id', '=', $group->id)->get();

        return view('dynamicfield::admin.group.edit', compact('group', 'fields', 'locations'));
    }
public function edit(Group $group)
    {
        $fields     = $group->getListFields();
        $locations  = Rule::where('group_id', '=', $group->id)->get();

        return view('dynamicfield::admin.group.edit', compact('group', 'fields', 'locations'));
    }
@param Group $group

@return \Illuminate\Contracts\View\Factory|\Illuminate\View\View