{"action":"created","comment":{"url":"https://api.github.com/repos/GrahamCampbell/Laravel-Exceptions/pulls/comments/30124982","id":30124982,"diff_hunk":"@@ -0,0 +1,74 @@\n+<?php\n+\n+/*\n+ * This file is part of Laravel Exceptions.\n+ *\n+ * (c) Graham Campbell <graham@mineuk.com>\n+ *\n+ * For the full copyright and license information, please view the LICENSE\n+ * file that was distributed with this source code.\n+ */\n+\n+namespace GrahamCampbell\\Exceptions\\Displayers;\n+\n+use Exception;\n+use GrahamCampbell\\Exceptions\\Traits\\InfoTrait;\n+use Illuminate\\Contracts\\View\\Factory as View;\n+\n+/**\n+ * This is the static displayer class.\n+ *\n+ * @author Libern Lin <libernlin@gmail.com>\n+ */\n+class StaticDisplayer implements DisplayerInterface\n+{\n+    use InfoTrait;\n+\n+    /**\n+     * The view.\n+     *\n+     * @var string\n+     */\n+    protected $view;\n+\n+    /**\n+     * Create a new static displayer instance.\n+     */\n+    public function __construct()\n+    {\n+        $this->view = file_get_contents(__DIR__.'/../../views/plain.html');","path":"src/Displayers/StaticDisplayer.php","position":39,"original_position":39,"commit_id":"673a2d718f711395b3c87c221d55d8ba2ed62904","original_commit_id":"a6c5d8eed491aecfe8b1adfe46b209df1faf756e","user":{"login":"libern","id":1830640,"avatar_url":"https://avatars.githubusercontent.com/u/1830640?v=3","gravatar_id":"","url":"https://api.github.com/users/libern","html_url":"https://github.com/libern","followers_url":"https://api.github.com/users/libern/followers","following_url":"https://api.github.com/users/libern/following{/other_user}","gists_url":"https://api.github.com/users/libern/gists{/gist_id}","starred_url":"https://api.github.com/users/libern/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/libern/subscriptions","organizations_url":"https://api.github.com/users/libern/orgs","repos_url":"https://api.github.com/users/libern/repos","events_url":"https://api.github.com/users/libern/events{/privacy}","received_events_url":"https://api.github.com/users/libern/received_events","type":"User","site_admin":false},"body":"I think there should be a way to get the path to the published directory. As you didn't mention the view files are configureable through publishing them in the document, so I didn't do that part.","created_at":"2015-05-12T11:34:08Z","updated_at":"2015-05-12T11:34:08Z","html_url":"https://github.com/GrahamCampbell/Laravel-Exceptions/pull/4#discussion_r30124982","pull_request_url":"https://api.github.com/repos/GrahamCampbell/Laravel-Exceptions/pulls/4","_links":{"self":{"href":"https://api.github.com/repos/GrahamCampbell/Laravel-Exceptions/pulls/comments/30124982"},"html":{"href":"https://github.com/GrahamCampbell/Laravel-Exceptions/pull/4#discussion_r30124982"},"pull_request":{"href":"https://api.github.com/repos/GrahamCampbell/Laravel-Exceptions/pulls/4"}}},"pull_request":{"url":"https://api.github.com/repos/GrahamCampbell/Laravel-Exceptions/pulls/4","id":35216581,"html_url":"https://github.com/GrahamCampbell/Laravel-Exceptions/pull/4","diff_url":"https://github.com/GrahamCampbell/Laravel-Exceptions/pull/4.diff","patch_url":"https://github.com/GrahamCampbell/Laravel-Exceptions/pull/4.patch","issue_url":"https://api.github.com/repos/GrahamCampbell/Laravel-Exceptions/issues/4","number":4,"state":"open","locked":false,"title":"Fallback to static way if view is not available","user":{"login":"libern","id":1830640,"avatar_url":"https://avatars.githubusercontent.com/u/1830640?v=3","gravatar_id":"","url":"https://api.github.com/users/libern","html_url":"https://github.com/libern","followers_url":"https://api.github.com/users/libern/followers","following_url":"https://api.github.com/users/libern/following{/other_user}","gists_url":"https://api.github.com/users/libern/gists{/gist_id}","starred_url":"https://api.github.com/users/libern/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/libern/subscriptions","organizations_url":"https://api.github.com/users/libern/orgs","repos_url":"https://api.github.com/users/libern/repos","events_url":"https://api.github.com/users/libern/events{/privacy}","received_events_url":"https://api.github.com/users/libern/received_events","type":"User","site_admin":false},"body":"Hi, I have make it works even the app is not ready or view is not available via static way.","created_at":"2015-05-12T11:24:07Z","updated_at":"2015-05-12T11:34:08Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3b66d9235bae89741f9039f8f2b2895be74f13e3","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/GrahamCampbell/Laravel-Exceptions/pulls/4/commits","review_comments_url":"https://api.github.com/repos/GrahamCampbell/Laravel-Exceptions/pulls/4/comments","review_comment_url":"https://api.github.com/repos/GrahamCampbell/Laravel-Exceptions/pulls/comments{/number}","comments_url":"https://api.github.com/repos/GrahamCampbell/Laravel-Exceptions/issues/4/comments","statuses_url":"https://api.github.com/repos/GrahamCampbell/Laravel-Exceptions/statuses/673a2d718f711395b3c87c221d55d8ba2ed62904","head":{"label":"libern:static","ref":"static","sha":"673a2d718f711395b3c87c221d55d8ba2ed62904","user":{"login":"libern","id":1830640,"avatar_url":"https://avatars.githubusercontent.com/u/1830640?v=3","gravatar_id":"","url":"https://api.github.com/users/libern","html_url":"https://github.com/libern","followers_url":"https://api.github.com/users/libern/followers","following_url":"https://api.github.com/users/libern/following{/other_user}","gists_url":"https://api.github.com/users/libern/gists{/gist_id}","starred_url":"https://api.github.com/users/libern/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/libern/subscriptions","organizations_url":"https://api.github.com/users/libern/orgs","repos_url":"https://api.github.com/users/libern/repos","events_url":"https://api.github.com/users/libern/events{/privacy}","received_events_url":"https://api.github.com/users/libern/received_events","type":"User","site_admin":false},"repo":{"id":35481682,"name":"Laravel-Exceptions","full_name":"libern/Laravel-Exceptions","owner":{"login":"libern","id":1830640,"avatar_url":"https://avatars.githubusercontent.com/u/1830640?v=3","gravatar_id":"","url":"https://api.github.com/users/libern","html_url":"https://github.com/libern","followers_url":"https://api.github.com/users/libern/followers","following_url":"https://api.github.com/users/libern/following{/other_user}","gists_url":"https://api.github.com/users/libern/gists{/gist_id}","starred_url":"https://api.github.com/users/libern/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/libern/subscriptions","organizations_url":"https://api.github.com/users/libern/orgs","repos_url":"https://api.github.com/users/libern/repos","events_url":"https://api.github.com/users/libern/events{/privacy}","received_events_url":"https://api.github.com/users/libern/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/libern/Laravel-Exceptions","description":"Pretty error pages for both development and production for Laravel 5","fork":true,"url":"https://api.github.com/repos/libern/Laravel-Exceptions","forks_url":"https://api.github.com/repos/libern/Laravel-Exceptions/forks","keys_url":"https://api.github.com/repos/libern/Laravel-Exceptions/keys{/key_id}","collaborators_url":"https://api.github.com/repos/libern/Laravel-Exceptions/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/libern/Laravel-Exceptions/teams","hooks_url":"https://api.github.com/repos/libern/Laravel-Exceptions/hooks","issue_events_url":"https://api.github.com/repos/libern/Laravel-Exceptions/issues/events{/number}","events_url":"https://api.github.com/repos/libern/Laravel-Exceptions/events","assignees_url":"https://api.github.com/repos/libern/Laravel-Exceptions/assignees{/user}","branches_url":"https://api.github.com/repos/libern/Laravel-Exceptions/branches{/branch}","tags_url":"https://api.github.com/repos/libern/Laravel-Exceptions/tags","blobs_url":"https://api.github.com/repos/libern/Laravel-Exceptions/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/libern/Laravel-Exceptions/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/libern/Laravel-Exceptions/git/refs{/sha}","trees_url":"https://api.github.com/repos/libern/Laravel-Exceptions/git/trees{/sha}","statuses_url":"https://api.github.com/repos/libern/Laravel-Exceptions/statuses/{sha}","languages_url":"https://api.github.com/repos/libern/Laravel-Exceptions/languages","stargazers_url":"https://api.github.com/repos/libern/Laravel-Exceptions/stargazers","contributors_url":"https://api.github.com/repos/libern/Laravel-Exceptions/contributors","subscribers_url":"https://api.github.com/repos/libern/Laravel-Exceptions/subscribers","subscription_url":"https://api.github.com/repos/libern/Laravel-Exceptions/subscription","commits_url":"https://api.github.com/repos/libern/Laravel-Exceptions/commits{/sha}","git_commits_url":"https://api.github.com/repos/libern/Laravel-Exceptions/git/commits{/sha}","comments_url":"https://api.github.com/repos/libern/Laravel-Exceptions/comments{/number}","issue_comment_url":"https://api.github.com/repos/libern/Laravel-Exceptions/issues/comments{/number}","contents_url":"https://api.github.com/repos/libern/Laravel-Exceptions/contents/{+path}","compare_url":"https://api.github.com/repos/libern/Laravel-Exceptions/compare/{base}...{head}","merges_url":"https://api.github.com/repos/libern/Laravel-Exceptions/merges","archive_url":"https://api.github.com/repos/libern/Laravel-Exceptions/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/libern/Laravel-Exceptions/downloads","issues_url":"https://api.github.com/repos/libern/Laravel-Exceptions/issues{/number}","pulls_url":"https://api.github.com/repos/libern/Laravel-Exceptions/pulls{/number}","milestones_url":"https://api.github.com/repos/libern/Laravel-Exceptions/milestones{/number}","notifications_url":"https://api.github.com/repos/libern/Laravel-Exceptions/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/libern/Laravel-Exceptions/labels{/name}","releases_url":"https://api.github.com/repos/libern/Laravel-Exceptions/releases{/id}","created_at":"2015-05-12T10:27:23Z","updated_at":"2015-05-12T10:27:24Z","pushed_at":"2015-05-12T11:28:22Z","git_url":"git://github.com/libern/Laravel-Exceptions.git","ssh_url":"git@github.com:libern/Laravel-Exceptions.git","clone_url":"https://github.com/libern/Laravel-Exceptions.git","svn_url":"https://github.com/libern/Laravel-Exceptions","homepage":"https://grahamjcampbell.co.uk/","size":285,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"GrahamCampbell:master","ref":"master","sha":"d576d783a4da3ae2e0a73357798c52038e053ed1","user":{"login":"GrahamCampbell","id":2829600,"avatar_url":"https://avatars.githubusercontent.com/u/2829600?v=3","gravatar_id":"","url":"https://api.github.com/users/GrahamCampbell","html_url":"https://github.com/GrahamCampbell","followers_url":"https://api.github.com/users/GrahamCampbell/followers","following_url":"https://api.github.com/users/GrahamCampbell/following{/other_user}","gists_url":"https://api.github.com/users/GrahamCampbell/gists{/gist_id}","starred_url":"https://api.github.com/users/GrahamCampbell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GrahamCampbell/subscriptions","organizations_url":"https://api.github.com/users/GrahamCampbell/orgs","repos_url":"https://api.github.com/users/GrahamCampbell/repos","events_url":"https://api.github.com/users/GrahamCampbell/events{/privacy}","received_events_url":"https://api.github.com/users/GrahamCampbell/received_events","type":"User","site_admin":false},"repo":{"id":26882182,"name":"Laravel-Exceptions","full_name":"GrahamCampbell/Laravel-Exceptions","owner":{"login":"GrahamCampbell","id":2829600,"avatar_url":"https://avatars.githubusercontent.com/u/2829600?v=3","gravatar_id":"","url":"https://api.github.com/users/GrahamCampbell","html_url":"https://github.com/GrahamCampbell","followers_url":"https://api.github.com/users/GrahamCampbell/followers","following_url":"https://api.github.com/users/GrahamCampbell/following{/other_user}","gists_url":"https://api.github.com/users/GrahamCampbell/gists{/gist_id}","starred_url":"https://api.github.com/users/GrahamCampbell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GrahamCampbell/subscriptions","organizations_url":"https://api.github.com/users/GrahamCampbell/orgs","repos_url":"https://api.github.com/users/GrahamCampbell/repos","events_url":"https://api.github.com/users/GrahamCampbell/events{/privacy}","received_events_url":"https://api.github.com/users/GrahamCampbell/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/GrahamCampbell/Laravel-Exceptions","description":"Pretty error pages for both development and production for Laravel 5","fork":false,"url":"https://api.github.com/repos/GrahamCampbell/Laravel-Exceptions","forks_url":"https://api.github.com/repos/GrahamCampbell/Laravel-Exceptions/forks","keys_url":"https://api.github.com/repos/GrahamCampbell/Laravel-Exceptions/keys{/key_id}","collaborators_url":"https://api.github.com/repos/GrahamCampbell/Laravel-Exceptions/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/GrahamCampbell/Laravel-Exceptions/teams","hooks_url":"https://api.github.com/repos/GrahamCampbell/Laravel-Exceptions/hooks","issue_events_url":"https://api.github.com/repos/GrahamCampbell/Laravel-Exceptions/issues/events{/number}","events_url":"https://api.github.com/repos/GrahamCampbell/Laravel-Exceptions/events","assignees_url":"https://api.github.com/repos/GrahamCampbell/Laravel-Exceptions/assignees{/user}","branches_url":"https://api.github.com/repos/GrahamCampbell/Laravel-Exceptions/branches{/branch}","tags_url":"https://api.github.com/repos/GrahamCampbell/Laravel-Exceptions/tags","blobs_url":"https://api.github.com/repos/GrahamCampbell/Laravel-Exceptions/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/GrahamCampbell/Laravel-Exceptions/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/GrahamCampbell/Laravel-Exceptions/git/refs{/sha}","trees_url":"https://api.github.com/repos/GrahamCampbell/Laravel-Exceptions/git/trees{/sha}","statuses_url":"https://api.github.com/repos/GrahamCampbell/Laravel-Exceptions/statuses/{sha}","languages_url":"https://api.github.com/repos/GrahamCampbell/Laravel-Exceptions/languages","stargazers_url":"https://api.github.com/repos/GrahamCampbell/Laravel-Exceptions/stargazers","contributors_url":"https://api.github.com/repos/GrahamCampbell/Laravel-Exceptions/contributors","subscribers_url":"https://api.github.com/repos/GrahamCampbell/Laravel-Exceptions/subscribers","subscription_url":"https://api.github.com/repos/GrahamCampbell/Laravel-Exceptions/subscription","commits_url":"https://api.github.com/repos/GrahamCampbell/Laravel-Exceptions/commits{/sha}","git_commits_url":"https://api.github.com/repos/GrahamCampbell/Laravel-Exceptions/git/commits{/sha}","comments_url":"https://api.github.com/repos/GrahamCampbell/Laravel-Exceptions/comments{/number}","issue_comment_url":"https://api.github.com/repos/GrahamCampbell/Laravel-Exceptions/issues/comments{/number}","contents_url":"https://api.github.com/repos/GrahamCampbell/Laravel-Exceptions/contents/{+path}","compare_url":"https://api.github.com/repos/GrahamCampbell/Laravel-Exceptions/compare/{base}...{head}","merges_url":"https://api.github.com/repos/GrahamCampbell/Laravel-Exceptions/merges","archive_url":"https://api.github.com/repos/GrahamCampbell/Laravel-Exceptions/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/GrahamCampbell/Laravel-Exceptions/downloads","issues_url":"https://api.github.com/repos/GrahamCampbell/Laravel-Exceptions/issues{/number}","pulls_url":"https://api.github.com/repos/GrahamCampbell/Laravel-Exceptions/pulls{/number}","milestones_url":"https://api.github.com/repos/GrahamCampbell/Laravel-Exceptions/milestones{/number}","notifications_url":"https://api.github.com/repos/GrahamCampbell/Laravel-Exceptions/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/GrahamCampbell/Laravel-Exceptions/labels{/name}","releases_url":"https://api.github.com/repos/GrahamCampbell/Laravel-Exceptions/releases{/id}","created_at":"2014-11-19T21:21:00Z","updated_at":"2015-05-12T07:54:20Z","pushed_at":"2015-05-12T11:28:22Z","git_url":"git://github.com/GrahamCampbell/Laravel-Exceptions.git","ssh_url":"git@github.com:GrahamCampbell/Laravel-Exceptions.git","clone_url":"https://github.com/GrahamCampbell/Laravel-Exceptions.git","svn_url":"https://github.com/GrahamCampbell/Laravel-Exceptions","homepage":"https://grahamjcampbell.co.uk/","size":285,"stargazers_count":32,"watchers_count":32,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":3,"forks":4,"open_issues":3,"watchers":32,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/GrahamCampbell/Laravel-Exceptions/pulls/4"},"html":{"href":"https://github.com/GrahamCampbell/Laravel-Exceptions/pull/4"},"issue":{"href":"https://api.github.com/repos/GrahamCampbell/Laravel-Exceptions/issues/4"},"comments":{"href":"https://api.github.com/repos/GrahamCampbell/Laravel-Exceptions/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/GrahamCampbell/Laravel-Exceptions/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/GrahamCampbell/Laravel-Exceptions/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/GrahamCampbell/Laravel-Exceptions/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/GrahamCampbell/Laravel-Exceptions/statuses/673a2d718f711395b3c87c221d55d8ba2ed62904"}}}}