mirror of
https://git.meshkee.com/cssd/cssd-back.git
synced 2026-10-11 11:51:07 +03:30
change edit func of package & pack & cycle
This commit is contained in:
@@ -44,7 +44,9 @@ class PackageController extends Controller
|
||||
}
|
||||
public function edit(Package $Package)
|
||||
{
|
||||
$Package->load('user', 'items');
|
||||
$Items = $Package->items->pluck('id')->toArray();
|
||||
unset($Package->items);
|
||||
$Package->items = $Items;
|
||||
return \MessageResponse::data($Package);
|
||||
}
|
||||
public function update(StorePackageRequest $request, Package $Package)
|
||||
|
||||
Reference in New Issue
Block a user