mirror of
https://git.meshkee.com/cssd/cssd-back.git
synced 2026-10-11 17:51:07 +03:30
update list item and labelcontroller
This commit is contained in:
@@ -94,10 +94,10 @@ class LabelController extends Controller
|
||||
if (auth('api')->user()->cant('delete', $Label)) {
|
||||
return \MessageResponse::error(trans('messages.access_denied'));
|
||||
}
|
||||
if(count($Label->packages))
|
||||
{
|
||||
$Label->packages()->detach();
|
||||
}
|
||||
// if(count($Label->packages))
|
||||
// {
|
||||
// $Label->packages()->detach();
|
||||
// }
|
||||
if(count($Label->cycles))
|
||||
{
|
||||
$Label->cycles()->detach();
|
||||
|
||||
Reference in New Issue
Block a user