payload: {"action":"created","issue":{"url":"https://api.github.com/repos/caffeinated/shinobi/issues/104","repository_url":"https://api.github.com/repos/caffeinated/shinobi","labels_url":"https://api.github.com/repos/caffeinated/shinobi/issues/104/labels{/name}","comments_url":"https://api.github.com/repos/caffeinated/shinobi/issues/104/comments","events_url":"https://api.github.com/repos/caffeinated/shinobi/issues/104/events","html_url":"https://github.com/caffeinated/shinobi/issues/104","id":455002176,"node_id":"MDU6SXNzdWU0NTUwMDIxNzY=","number":104,"title":"Blade directive @can doesn´t work ","user":{"login":"aesu","id":7735825,"node_id":"MDQ6VXNlcjc3MzU4MjU=","avatar_url":"https://avatars0.githubusercontent.com/u/7735825?v=4","gravatar_id":"","url":"https://api.github.com/users/aesu","html_url":"https://github.com/aesu","followers_url":"https://api.github.com/users/aesu/followers","following_url":"https://api.github.com/users/aesu/following{/other_user}","gists_url":"https://api.github.com/users/aesu/gists{/gist_id}","starred_url":"https://api.github.com/users/aesu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aesu/subscriptions","organizations_url":"https://api.github.com/users/aesu/orgs","repos_url":"https://api.github.com/users/aesu/repos","events_url":"https://api.github.com/users/aesu/events{/privacy}","received_events_url":"https://api.github.com/users/aesu/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2019-06-12T04:05:43Z","updated_at":"2019-06-18T17:28:41Z","closed_at":"2019-06-18T17:28:41Z","author_association":"NONE","body":"Hello everybody, i'm testing permissions assigned to a role using \"can\" directive like this:\r\n\r\n```\r\n@can('incomes.index', $permissions)\r\n    <li class=\"nav-item\">\r\n        <a href=\"{{route('incomes.index')}}\" class=\"nav-link\">Incomes</a>\r\n    </li>\r\n@endcan\r\n```\r\n\r\nBut it is not working and in the cahe file shows something like this:\r\n```\r\n<?php if (app(\\Illuminate\\Contracts\\Auth\\Access\\Gate::class)->check('incomes.index')): ?>\r\n    <li class=\"nav-item\">\r\n        <a href=\"<?php echo e(route('incomes.index')); ?>\" class=\"nav-link\">Incomes</a>\r\n    </li>\r\n<?php endif; ?>\r\n```\r\nI really aprettiate your help, thank´s.\r\nNote: I'm using Laravel 5.8 and Shinobbi 4.0, long time ago, i used the package 3.x in Laravel 5.5 and it worked fine, what can be the problem?. Thank's again."},"comment":{"url":"https://api.github.com/repos/caffeinated/shinobi/issues/comments/503233613","html_url":"https://github.com/caffeinated/shinobi/issues/104#issuecomment-503233613","issue_url":"https://api.github.com/repos/caffeinated/shinobi/issues/104","id":503233613,"node_id":"MDEyOklzc3VlQ29tbWVudDUwMzIzMzYxMw==","user":{"login":"kaidesu","id":355659,"node_id":"MDQ6VXNlcjM1NTY1OQ==","avatar_url":"https://avatars3.githubusercontent.com/u/355659?v=4","gravatar_id":"","url":"https://api.github.com/users/kaidesu","html_url":"https://github.com/kaidesu","followers_url":"https://api.github.com/users/kaidesu/followers","following_url":"https://api.github.com/users/kaidesu/following{/other_user}","gists_url":"https://api.github.com/users/kaidesu/gists{/gist_id}","starred_url":"https://api.github.com/users/kaidesu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kaidesu/subscriptions","organizations_url":"https://api.github.com/users/kaidesu/orgs","repos_url":"https://api.github.com/users/kaidesu/repos","events_url":"https://api.github.com/users/kaidesu/events{/privacy}","received_events_url":"https://api.github.com/users/kaidesu/received_events","type":"User","site_admin":false},"created_at":"2019-06-18T17:28:41Z","updated_at":"2019-06-18T17:28:41Z","author_association":"MEMBER","body":"Shouldn't need to pass the second parameter through - `@can('incomes.index')` should suffice here :+1:"}}
other: {"actor":{"display_login":"kaidesu"}}