{"action":"created","issue":{"url":"https://api.github.com/repos/Stolz/Assets/issues/71","labels_url":"https://api.github.com/repos/Stolz/Assets/issues/71/labels{/name}","comments_url":"https://api.github.com/repos/Stolz/Assets/issues/71/comments","events_url":"https://api.github.com/repos/Stolz/Assets/issues/71/events","html_url":"https://github.com/Stolz/Assets/issues/71","id":88696184,"number":71,"title":"Add asset to collection","user":{"login":"devyanlab","id":122845,"avatar_url":"https://avatars.githubusercontent.com/u/122845?v=3","gravatar_id":"","url":"https://api.github.com/users/devyanlab","html_url":"https://github.com/devyanlab","followers_url":"https://api.github.com/users/devyanlab/followers","following_url":"https://api.github.com/users/devyanlab/following{/other_user}","gists_url":"https://api.github.com/users/devyanlab/gists{/gist_id}","starred_url":"https://api.github.com/users/devyanlab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/devyanlab/subscriptions","organizations_url":"https://api.github.com/users/devyanlab/orgs","repos_url":"https://api.github.com/users/devyanlab/repos","events_url":"https://api.github.com/users/devyanlab/events{/privacy}","received_events_url":"https://api.github.com/users/devyanlab/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-06-16T11:16:13Z","updated_at":"2015-06-16T12:24:48Z","closed_at":"2015-06-16T12:24:48Z","body":"Is it possible to add a specfic asset to a collection?\r\n\r\nLike so\r\n\r\n`Assets::add([asset-path], [collection-name]);`"},"comment":{"url":"https://api.github.com/repos/Stolz/Assets/issues/comments/112406590","html_url":"https://github.com/Stolz/Assets/issues/71#issuecomment-112406590","issue_url":"https://api.github.com/repos/Stolz/Assets/issues/71","id":112406590,"user":{"login":"Stolz","id":291060,"avatar_url":"https://avatars.githubusercontent.com/u/291060?v=3","gravatar_id":"","url":"https://api.github.com/users/Stolz","html_url":"https://github.com/Stolz","followers_url":"https://api.github.com/users/Stolz/followers","following_url":"https://api.github.com/users/Stolz/following{/other_user}","gists_url":"https://api.github.com/users/Stolz/gists{/gist_id}","starred_url":"https://api.github.com/users/Stolz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Stolz/subscriptions","organizations_url":"https://api.github.com/users/Stolz/orgs","repos_url":"https://api.github.com/users/Stolz/repos","events_url":"https://api.github.com/users/Stolz/events{/privacy}","received_events_url":"https://api.github.com/users/Stolz/received_events","type":"User","site_admin":false},"created_at":"2015-06-16T12:24:48Z","updated_at":"2015-06-16T12:24:48Z","body":"No, it is not possible. Collections are immutable.\r\n\r\nYou will get the same effect if you run\r\n\r\n    Assets::add('collection-name')->add('asset-path);\r\n\r\nIf you still need the asset to be added to the specific collection instead of the whole assets stack, then you can replace the full collection with the function `Assets::registerCollection('collectionName', $arrayOfassets)`"}}