|
@@ -133,13 +133,6 @@ class AssetController extends Controller
|
|
|
{
|
|
|
$assetsAttachmentArray = [];
|
|
|
$assets = Asset::allowed()->get(['id', 'name', 'parent_id'])->each(function ($assets) use(&$assetsAttachmentArray){
|
|
|
-
|
|
|
-
|
|
|
- $asset =new Asset();
|
|
|
- $asset ->parent_id = $assets->id;
|
|
|
- $asset ->type = 'attachment';
|
|
|
- $asset->uniId='attachment_'.$assets->id;
|
|
|
- $asset->id = 123456789;
|
|
|
$assetsAttachmentArray[]=[
|
|
|
"parent_id"=>$assets->id,
|
|
|
"type"=>'attachment',
|