{"action":"created","issue":{"url":"https://api.github.com/repos/BKWLD/croppa/issues/91","labels_url":"https://api.github.com/repos/BKWLD/croppa/issues/91/labels{/name}","comments_url":"https://api.github.com/repos/BKWLD/croppa/issues/91/comments","events_url":"https://api.github.com/repos/BKWLD/croppa/issues/91/events","html_url":"https://github.com/BKWLD/croppa/issues/91","id":82435334,"number":91,"title":"Use croppa with files in Storage","user":{"login":"dusandevic","id":4022256,"avatar_url":"https://avatars.githubusercontent.com/u/4022256?v=3","gravatar_id":"","url":"https://api.github.com/users/dusandevic","html_url":"https://github.com/dusandevic","followers_url":"https://api.github.com/users/dusandevic/followers","following_url":"https://api.github.com/users/dusandevic/following{/other_user}","gists_url":"https://api.github.com/users/dusandevic/gists{/gist_id}","starred_url":"https://api.github.com/users/dusandevic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dusandevic/subscriptions","organizations_url":"https://api.github.com/users/dusandevic/orgs","repos_url":"https://api.github.com/users/dusandevic/repos","events_url":"https://api.github.com/users/dusandevic/events{/privacy}","received_events_url":"https://api.github.com/users/dusandevic/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-05-29T13:48:12Z","updated_at":"2015-06-19T23:02:10Z","closed_at":"2015-06-19T23:02:10Z","body":"My files are located in project/storage/app/* folder.\r\n\r\nThis is how I retrieve files from the controller: \r\n\r\n```\r\n$file = Storage::disk('local')->get($entry->filename);\r\n\t\treturn (new Response($file, 200))\r\n              ->header('Content-Type', $entry->mime);\t\r\n```\r\n\r\nHow can I use this awesome library with such use case?"},"comment":{"url":"https://api.github.com/repos/BKWLD/croppa/issues/comments/113665908","html_url":"https://github.com/BKWLD/croppa/issues/91#issuecomment-113665908","issue_url":"https://api.github.com/repos/BKWLD/croppa/issues/91","id":113665908,"user":{"login":"weotch","id":77567,"avatar_url":"https://avatars.githubusercontent.com/u/77567?v=3","gravatar_id":"","url":"https://api.github.com/users/weotch","html_url":"https://github.com/weotch","followers_url":"https://api.github.com/users/weotch/followers","following_url":"https://api.github.com/users/weotch/following{/other_user}","gists_url":"https://api.github.com/users/weotch/gists{/gist_id}","starred_url":"https://api.github.com/users/weotch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/weotch/subscriptions","organizations_url":"https://api.github.com/users/weotch/orgs","repos_url":"https://api.github.com/users/weotch/repos","events_url":"https://api.github.com/users/weotch/events{/privacy}","received_events_url":"https://api.github.com/users/weotch/received_events","type":"User","site_admin":false},"created_at":"2015-06-19T23:02:10Z","updated_at":"2015-06-19T23:02:10Z","body":"This looks to me like you have a controller action that is outputting images.  This isn't really what Croppa is designed for, you'd use Croppa **instead** of writing a controller action like this.  And you'd do that so that subsequent requests for the route to your crop get served by Apache, saving your server the overhead of booting up PHP.\r\n\r\nFor what you're doing there, look at [Intervention and it's caching feature](http://image.intervention.io/use/cache)"}}