{"action":"created","issue":{"url":"https://api.github.com/repos/kodeine/laravel-acl/issues/66","labels_url":"https://api.github.com/repos/kodeine/laravel-acl/issues/66/labels{/name}","comments_url":"https://api.github.com/repos/kodeine/laravel-acl/issues/66/comments","events_url":"https://api.github.com/repos/kodeine/laravel-acl/issues/66/events","html_url":"https://github.com/kodeine/laravel-acl/issues/66","id":90142428,"number":66,"title":"Call to undefined method Illuminate\\View\\Compilers\\BladeCompiler::directive()","user":{"login":"jshah4517","id":602425,"avatar_url":"https://avatars.githubusercontent.com/u/602425?v=3","gravatar_id":"","url":"https://api.github.com/users/jshah4517","html_url":"https://github.com/jshah4517","followers_url":"https://api.github.com/users/jshah4517/followers","following_url":"https://api.github.com/users/jshah4517/following{/other_user}","gists_url":"https://api.github.com/users/jshah4517/gists{/gist_id}","starred_url":"https://api.github.com/users/jshah4517/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jshah4517/subscriptions","organizations_url":"https://api.github.com/users/jshah4517/orgs","repos_url":"https://api.github.com/users/jshah4517/repos","events_url":"https://api.github.com/users/jshah4517/events{/privacy}","received_events_url":"https://api.github.com/users/jshah4517/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-06-22T16:09:49Z","updated_at":"2015-07-01T15:30:59Z","closed_at":"2015-06-22T16:19:37Z","body":"This error appeared after doing composer update today, currently running Laravel 5.0.33.\r\n\r\nI managed to find the block of code at fault, lines 64 to 81 in AclServiceProvider.php, as copied below. Commenting it out temporarily fixed the problem but I'm unsure about a permanent solution (not even sure why this has suddenly appeared).\r\n\r\n```php\r\n        // role\r\n        Blade::directive('role', function($expression) {\r\n            return \"<?php if (Auth::check() && Auth::user()->is{$expression}): ?>\";\r\n        });\r\n\r\n        Blade::directive('endrole', function() {\r\n            return \"<?php endif; ?>\";\r\n        });\r\n\r\n        // permission\r\n        Blade::directive('permission', function($expression) {\r\n            return \"<?php if (Auth::check() && Auth::user()->can{$expression}): ?>\";\r\n        });\r\n\r\n        Blade::directive('endpermission', function() {\r\n            return \"<?php endif; ?>\";\r\n        });\r\n```"},"comment":{"url":"https://api.github.com/repos/kodeine/laravel-acl/issues/comments/117716063","html_url":"https://github.com/kodeine/laravel-acl/issues/66#issuecomment-117716063","issue_url":"https://api.github.com/repos/kodeine/laravel-acl/issues/66","id":117716063,"user":{"login":"kodeine","id":8620059,"avatar_url":"https://avatars.githubusercontent.com/u/8620059?v=3","gravatar_id":"","url":"https://api.github.com/users/kodeine","html_url":"https://github.com/kodeine","followers_url":"https://api.github.com/users/kodeine/followers","following_url":"https://api.github.com/users/kodeine/following{/other_user}","gists_url":"https://api.github.com/users/kodeine/gists{/gist_id}","starred_url":"https://api.github.com/users/kodeine/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kodeine/subscriptions","organizations_url":"https://api.github.com/users/kodeine/orgs","repos_url":"https://api.github.com/users/kodeine/repos","events_url":"https://api.github.com/users/kodeine/events{/privacy}","received_events_url":"https://api.github.com/users/kodeine/received_events","type":"User","site_admin":false},"created_at":"2015-07-01T15:30:59Z","updated_at":"2015-07-01T15:30:59Z","body":"Your compose.json should have `\"kodeine/laravel-acl\": \"~1.0@dev\",` not the dev-master branch."}}