{"action":"created","issue":{"url":"https://api.github.com/repos/laravel/internals/issues/100","repository_url":"https://api.github.com/repos/laravel/internals","labels_url":"https://api.github.com/repos/laravel/internals/issues/100/labels{/name}","comments_url":"https://api.github.com/repos/laravel/internals/issues/100/comments","events_url":"https://api.github.com/repos/laravel/internals/issues/100/events","html_url":"https://github.com/laravel/internals/issues/100","id":157162677,"number":100,"title":"FileSystem methods `put` and `append` fail if path doesn't exist","user":{"login":"mtantawy","id":244932,"avatar_url":"https://avatars.githubusercontent.com/u/244932?v=3","gravatar_id":"","url":"https://api.github.com/users/mtantawy","html_url":"https://github.com/mtantawy","followers_url":"https://api.github.com/users/mtantawy/followers","following_url":"https://api.github.com/users/mtantawy/following{/other_user}","gists_url":"https://api.github.com/users/mtantawy/gists{/gist_id}","starred_url":"https://api.github.com/users/mtantawy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mtantawy/subscriptions","organizations_url":"https://api.github.com/users/mtantawy/orgs","repos_url":"https://api.github.com/users/mtantawy/repos","events_url":"https://api.github.com/users/mtantawy/events{/privacy}","received_events_url":"https://api.github.com/users/mtantawy/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2016-05-27T09:09:05Z","updated_at":"2016-06-02T03:21:40Z","closed_at":null,"body":"This is my first contribution to Laravel which is not a bug but a little improvement that if approved in concept i will create the PR for it.\r\n\r\nI got a Laravel app from a friend which was lacking some directories inside /storage, this caused Laravel to not be able to place compiled blade views correctly so the app failed, hinting at a permissions issue which was not the case.\r\n\r\nAfter checking, i found that both methods `put` (the one actually causing the issue) and `append` do not first try to create the directories hierarchy if not found.\r\n\r\nI am putting this first for discussion as some might argue that making `put` and `append` methods create the directories first is not a good practice as this is not their \"purpose/responsibility\", however, my argument is the simplicity and smoothness that comes with this change is worth it.\r\n\r\nSo, what do you think?!\r\nDoes anyone have a better solution?"},"comment":{"url":"https://api.github.com/repos/laravel/internals/issues/comments/223185837","html_url":"https://github.com/laravel/internals/issues/100#issuecomment-223185837","issue_url":"https://api.github.com/repos/laravel/internals/issues/100","id":223185837,"user":{"login":"vlakoff","id":544424,"avatar_url":"https://avatars.githubusercontent.com/u/544424?v=3","gravatar_id":"","url":"https://api.github.com/users/vlakoff","html_url":"https://github.com/vlakoff","followers_url":"https://api.github.com/users/vlakoff/followers","following_url":"https://api.github.com/users/vlakoff/following{/other_user}","gists_url":"https://api.github.com/users/vlakoff/gists{/gist_id}","starred_url":"https://api.github.com/users/vlakoff/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vlakoff/subscriptions","organizations_url":"https://api.github.com/users/vlakoff/orgs","repos_url":"https://api.github.com/users/vlakoff/repos","events_url":"https://api.github.com/users/vlakoff/events{/privacy}","received_events_url":"https://api.github.com/users/vlakoff/received_events","type":"User","site_admin":false},"created_at":"2016-06-02T03:21:40Z","updated_at":"2016-06-02T03:21:40Z","body":"The `storage/framework/views` directory is not supposed to be missing. The `.gitignore` file inside it should prevent it from being accidentally deleted in most situations.\r\n\r\nI think it's fine as it is. As I said above, better not complicate the code for this."}}
{"actor":{"display_login":"vlakoff"}}