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