{"action":"created","issue":{"url":"https://api.github.com/repos/spatie/laravel-medialibrary/issues/99","labels_url":"https://api.github.com/repos/spatie/laravel-medialibrary/issues/99/labels{/name}","comments_url":"https://api.github.com/repos/spatie/laravel-medialibrary/issues/99/comments","events_url":"https://api.github.com/repos/spatie/laravel-medialibrary/issues/99/events","html_url":"https://github.com/spatie/laravel-medialibrary/issues/99","id":115896041,"number":99,"title":"Amazon S3 Integration Issue","user":{"login":"timgavin","id":1012049,"avatar_url":"https://avatars.githubusercontent.com/u/1012049?v=3","gravatar_id":"","url":"https://api.github.com/users/timgavin","html_url":"https://github.com/timgavin","followers_url":"https://api.github.com/users/timgavin/followers","following_url":"https://api.github.com/users/timgavin/following{/other_user}","gists_url":"https://api.github.com/users/timgavin/gists{/gist_id}","starred_url":"https://api.github.com/users/timgavin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/timgavin/subscriptions","organizations_url":"https://api.github.com/users/timgavin/orgs","repos_url":"https://api.github.com/users/timgavin/repos","events_url":"https://api.github.com/users/timgavin/events{/privacy}","received_events_url":"https://api.github.com/users/timgavin/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-09T15:08:07Z","updated_at":"2015-11-09T15:12:51Z","closed_at":"2015-11-09T15:12:51Z","body":"I followed the [ Media Library docs](http://medialibrary.spatie.be/) to the letter and was able to put a file locally using\r\n\r\n```\r\n$post->addMedia($pathToFile)\r\n->preservingOriginal()\r\n->toMediaLibrary();\r\n```\r\n\r\nI was amazed at how easy it was! However, when using the S3 example:\r\n\r\n```\r\n$post->addMedia($pathToFile)->toCollectionOnDisk('images', 's3');\r\n```\r\n\r\nI received the following error:\r\n```\r\nFatalErrorException in FilesystemManager.php line 166:\r\nClass 'League\\Flysystem\\AwsS3v3\\AwsS3Adapter' not found\r\n```\r\n\r\nThe documentation doesn't say anything about using the Flysystem S3 component - is it actually required? Or am I doing something wrong? Regardless, I installed it and am still receiving the error."},"comment":{"url":"https://api.github.com/repos/spatie/laravel-medialibrary/issues/comments/155091745","html_url":"https://github.com/spatie/laravel-medialibrary/issues/99#issuecomment-155091745","issue_url":"https://api.github.com/repos/spatie/laravel-medialibrary/issues/99","id":155091745,"user":{"login":"freekmurze","id":483853,"avatar_url":"https://avatars.githubusercontent.com/u/483853?v=3","gravatar_id":"","url":"https://api.github.com/users/freekmurze","html_url":"https://github.com/freekmurze","followers_url":"https://api.github.com/users/freekmurze/followers","following_url":"https://api.github.com/users/freekmurze/following{/other_user}","gists_url":"https://api.github.com/users/freekmurze/gists{/gist_id}","starred_url":"https://api.github.com/users/freekmurze/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/freekmurze/subscriptions","organizations_url":"https://api.github.com/users/freekmurze/orgs","repos_url":"https://api.github.com/users/freekmurze/repos","events_url":"https://api.github.com/users/freekmurze/events{/privacy}","received_events_url":"https://api.github.com/users/freekmurze/received_events","type":"User","site_admin":false},"created_at":"2015-11-09T15:12:51Z","updated_at":"2015-11-09T15:12:51Z","body":"This package uses Laravel's built in Cloud Filesystem. To use S3 you'll have to require `league/flysystem-aws-s3-v3`. It's mentioned in the [Laravel docs](http://laravel.com/docs/master/filesystem).\r\n\r\nFor clarity I'll mention this optional requirement in our docs."}}