change pack

This commit is contained in:
Fayyazi
2019-09-08 13:27:57 +04:30
parent e278b4e957
commit 5cb3eb800d
4 changed files with 10 additions and 10 deletions
+2 -2
View File
@@ -62,9 +62,9 @@ class PackageController extends Controller
{
$Package->items()->detach();
}
if(count($Package->packes))
if(count($Package->packs))
{
$Package->packes()->detach();
$Package->packs()->detach();
}
$Package->delete();
return \MessageResponse::success(trans('messages.success'));