{"action":"created","issue":{"url":"https://api.github.com/repos/barryvdh/laravel-debugbar/issues/537","repository_url":"https://api.github.com/repos/barryvdh/laravel-debugbar","labels_url":"https://api.github.com/repos/barryvdh/laravel-debugbar/issues/537/labels{/name}","comments_url":"https://api.github.com/repos/barryvdh/laravel-debugbar/issues/537/comments","events_url":"https://api.github.com/repos/barryvdh/laravel-debugbar/issues/537/events","html_url":"https://github.com/barryvdh/laravel-debugbar/issues/537","id":171868802,"number":537,"title":"Call to undefined method DebugBar\\DebugBar::error()","user":{"login":"xlkit456852","id":7323450,"avatar_url":"https://avatars.githubusercontent.com/u/7323450?v=3","gravatar_id":"","url":"https://api.github.com/users/xlkit456852","html_url":"https://github.com/xlkit456852","followers_url":"https://api.github.com/users/xlkit456852/followers","following_url":"https://api.github.com/users/xlkit456852/following{/other_user}","gists_url":"https://api.github.com/users/xlkit456852/gists{/gist_id}","starred_url":"https://api.github.com/users/xlkit456852/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xlkit456852/subscriptions","organizations_url":"https://api.github.com/users/xlkit456852/orgs","repos_url":"https://api.github.com/users/xlkit456852/repos","events_url":"https://api.github.com/users/xlkit456852/events{/privacy}","received_events_url":"https://api.github.com/users/xlkit456852/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-08-18T10:27:12Z","updated_at":"2016-08-18T13:50:27Z","closed_at":null,"body":"Lavarel version:5.2.43\r\nWhen trying to use the debugbar after finish installing by the way you give , I got this error . \r\ni'm sure that I have ran composer update barryvdh/laravel-debugbar and composer dump-autoload.\r\nI was thinking if it can't find the 'Barryvdh\\Debugbar'  ...or something..\r\ncomposer.js:\r\n`{\r\n    \"name\": \"laravel/laravel\",\r\n    \"description\": \"The Laravel Framework.\",\r\n    \"keywords\": [\"framework\", \"laravel\"],\r\n    \"license\": \"MIT\",\r\n    \"type\": \"project\",\r\n    \"require\": {\r\n        \"php\": \">=5.5.9\",\r\n        \"laravel/framework\": \"5.2.*\",\r\n        \"barryvdh/laravel-debugbar\": \"^2.2\"\r\n    },\r\n    \"require-dev\": {\r\n        \"fzaninotto/faker\": \"~1.4\",\r\n        \"mockery/mockery\": \"0.9.*\",\r\n        \"phpunit/phpunit\": \"~4.0\",\r\n        \"symfony/css-selector\": \"2.8.*|3.0.*\",\r\n        \"symfony/dom-crawler\": \"2.8.*|3.0.*\"\r\n    },\r\n    \"autoload\": {\r\n        \"classmap\": [\r\n            \"database\"\r\n        ],\r\n        \"psr-4\": {\r\n            \"App\\\\\": \"app/\"\r\n        }\r\n    },\r\n    \"autoload-dev\": {\r\n        \"classmap\": [\r\n            \"tests/TestCase.php\"\r\n        ]\r\n    },\r\n    \"scripts\": {\r\n        \"post-root-package-install\": [\r\n            \"php -r \\\"copy('.env.example', '.env');\\\"\"\r\n        ],\r\n        \"post-create-project-cmd\": [\r\n            \"php artisan key:generate\"\r\n        ],\r\n        \"post-install-cmd\": [\r\n            \"Illuminate\\\\Foundation\\\\ComposerScripts::postInstall\",\r\n            \"php artisan optimize\"\r\n        ],\r\n        \"post-update-cmd\": [\r\n            \"Illuminate\\\\Foundation\\\\ComposerScripts::postUpdate\",\r\n            \"php artisan optimize\"\r\n        ]\r\n    },\r\n    \"config\": {\r\n        \"preferred-install\": \"dist\"\r\n    }\r\n}\r\n`\r\n\r\nController：\r\n`\r\nuse Debug\\DebugBar\r\n\r\nfunction(){\r\nDebugbar::error('Error!');\r\n}\r\n`\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/barryvdh/laravel-debugbar/issues/comments/240728675","html_url":"https://github.com/barryvdh/laravel-debugbar/issues/537#issuecomment-240728675","issue_url":"https://api.github.com/repos/barryvdh/laravel-debugbar/issues/537","id":240728675,"user":{"login":"barryvdh","id":973269,"avatar_url":"https://avatars.githubusercontent.com/u/973269?v=3","gravatar_id":"","url":"https://api.github.com/users/barryvdh","html_url":"https://github.com/barryvdh","followers_url":"https://api.github.com/users/barryvdh/followers","following_url":"https://api.github.com/users/barryvdh/following{/other_user}","gists_url":"https://api.github.com/users/barryvdh/gists{/gist_id}","starred_url":"https://api.github.com/users/barryvdh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/barryvdh/subscriptions","organizations_url":"https://api.github.com/users/barryvdh/orgs","repos_url":"https://api.github.com/users/barryvdh/repos","events_url":"https://api.github.com/users/barryvdh/events{/privacy}","received_events_url":"https://api.github.com/users/barryvdh/received_events","type":"User","site_admin":false},"created_at":"2016-08-18T13:50:27Z","updated_at":"2016-08-18T13:50:27Z","body":"That only works with the facade, or app('debugbar')->error()."}}
{"actor":{"display_login":"barryvdh"}}