This commit is contained in:
mahdi purHosseini
2024-02-03 12:14:03 +03:30
parent f60a8ae2c3
commit e948ff7606
2 changed files with 4 additions and 0 deletions
+2
View File
@@ -35,6 +35,8 @@ class TransferResource extends JsonResource
return PackageResource::make($this->transferable);
}elseif($this->transferable_type == "App\\Item"){
return ItemResource::make($this->transferable);
}else{
return null;
}
}
}