{"action":"opened","issue":{"url":"https://api.github.com/repos/DevFactoryCH/media/issues/3","labels_url":"https://api.github.com/repos/DevFactoryCH/media/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/DevFactoryCH/media/issues/3/comments","events_url":"https://api.github.com/repos/DevFactoryCH/media/issues/3/events","html_url":"https://github.com/DevFactoryCH/media/issues/3","id":80945837,"number":3,"title":"removeMedia function can not operate","user":{"login":"widlturk","id":10669422,"avatar_url":"https://avatars.githubusercontent.com/u/10669422?v=3","gravatar_id":"","url":"https://api.github.com/users/widlturk","html_url":"https://github.com/widlturk","followers_url":"https://api.github.com/users/widlturk/followers","following_url":"https://api.github.com/users/widlturk/following{/other_user}","gists_url":"https://api.github.com/users/widlturk/gists{/gist_id}","starred_url":"https://api.github.com/users/widlturk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/widlturk/subscriptions","organizations_url":"https://api.github.com/users/widlturk/orgs","repos_url":"https://api.github.com/users/widlturk/repos","events_url":"https://api.github.com/users/widlturk/events{/privacy}","received_events_url":"https://api.github.com/users/widlturk/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-05-26T12:43:19Z","updated_at":"2015-05-26T12:43:19Z","closed_at":null,"body":"$this->public_path, $this->files_directory variable can not be found.\r\n\r\nAs a temporary solution \r\n\r\nprivate function removeMedia($media) {\r\n\r\n $this->public_path = rtrim(config('media.config.public_path'), '/\\\\') . '/';\r\n $this->files_directory = rtrim(ltrim(config('media.config.files_directory'), '/\\\\'), '/\\\\') . '/';\r\n\r\n      File::delete($this->public_path . $this->files_directory . $media->filename);\r\n      $media->delete();\r\n  }"}}