{"action":"created","issue":{"url":"https://api.github.com/repos/artesaos/defender/issues/102","repository_url":"https://api.github.com/repos/artesaos/defender","labels_url":"https://api.github.com/repos/artesaos/defender/issues/102/labels{/name}","comments_url":"https://api.github.com/repos/artesaos/defender/issues/102/comments","events_url":"https://api.github.com/repos/artesaos/defender/issues/102/events","html_url":"https://github.com/artesaos/defender/issues/102","id":174982410,"number":102,"title":"Parse error: syntax error","user":{"login":"JaoNoctus","id":7918067,"avatar_url":"https://avatars.githubusercontent.com/u/7918067?v=3","gravatar_id":"","url":"https://api.github.com/users/JaoNoctus","html_url":"https://github.com/JaoNoctus","followers_url":"https://api.github.com/users/JaoNoctus/followers","following_url":"https://api.github.com/users/JaoNoctus/following{/other_user}","gists_url":"https://api.github.com/users/JaoNoctus/gists{/gist_id}","starred_url":"https://api.github.com/users/JaoNoctus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JaoNoctus/subscriptions","organizations_url":"https://api.github.com/users/JaoNoctus/orgs","repos_url":"https://api.github.com/users/JaoNoctus/repos","events_url":"https://api.github.com/users/JaoNoctus/events{/privacy}","received_events_url":"https://api.github.com/users/JaoNoctus/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/artesaos/defender/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/artesaos/defender/labels/high%20priority","name":"high priority","color":"eb6420"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-09-05T01:53:29Z","updated_at":"2016-09-05T20:43:47Z","closed_at":null,"body":"**PHP:** v7.0.10\r\n**Laravel:** v5.3.6\r\n\r\nsource:\r\n```blade\r\n@shield('test')\r\n    ...\r\n@endshield\r\n```\r\n\r\nerror:\r\n```\r\nParse error: syntax error, unexpected ''test'' (T_CONSTANT_ENCAPSED_STRING) (View: /home/jaonoctus/htdocs/laravel/resources/views/home.blade.php)\r\n```\r\n\r\nlog:\r\n```\r\nin 34a69314a1628d6b7321a2436770cbd95c4e44bf.php line 11\r\nat CompilerEngine->handleViewException(object(FatalThrowableError), '1') in PhpEngine.php line 46\r\nat PhpEngine->evaluatePath('/home/jaonoctus/htdocs/laravel/storage/framework/views/34a69314a1628d6b7321a2436770cbd95c4e44bf.php', array('__env' => object(Factory), 'app' => object(Application), 'errors' => object(ViewErrorBag))) in CompilerEngine.php line 59\r\nat CompilerEngine->get('/home/jaonoctus/htdocs/laravel/resources/views/home.blade.php', array('__env' => object(Factory), 'app' => object(Application), 'errors' => object(ViewErrorBag))) in View.php line 149\r\nat View->getContents() in View.php line 120\r\nat View->renderContents() in View.php line 85\r\nat View->render() in Response.php line 45\r\nat Response->setContent(object(View)) in Response.php line 201\r\nat Response->__construct(object(View)) in Router.php line 1042\r\nat Router->prepareResponse(object(Request), object(View)) in Router.php line 642\r\nat Router->Illuminate\\Routing\\{closure}(object(Request)) in Pipeline.php line 53\r\nat Pipeline->Illuminate\\Routing\\{closure}(object(Request)) in SubstituteBindings.php line 41\r\nat SubstituteBindings->handle(object(Request), object(Closure)) in Pipeline.php line 137\r\nat Pipeline->Illuminate\\Pipeline\\{closure}(object(Request)) in Pipeline.php line 33\r\nat Pipeline->Illuminate\\Routing\\{closure}(object(Request)) in Authenticate.php line 43\r\nat Authenticate->handle(object(Request), object(Closure)) in Pipeline.php line 137\r\nat Pipeline->Illuminate\\Pipeline\\{closure}(object(Request)) in Pipeline.php line 33\r\nat Pipeline->Illuminate\\Routing\\{closure}(object(Request)) in VerifyCsrfToken.php line 64\r\nat VerifyCsrfToken->handle(object(Request), object(Closure)) in Pipeline.php line 137\r\nat Pipeline->Illuminate\\Pipeline\\{closure}(object(Request)) in Pipeline.php line 33\r\nat Pipeline->Illuminate\\Routing\\{closure}(object(Request)) in ShareErrorsFromSession.php line 49\r\nat ShareErrorsFromSession->handle(object(Request), object(Closure)) in Pipeline.php line 137\r\nat Pipeline->Illuminate\\Pipeline\\{closure}(object(Request)) in Pipeline.php line 33\r\nat Pipeline->Illuminate\\Routing\\{closure}(object(Request)) in StartSession.php line 64\r\nat StartSession->handle(object(Request), object(Closure)) in Pipeline.php line 137\r\nat Pipeline->Illuminate\\Pipeline\\{closure}(object(Request)) in Pipeline.php line 33\r\nat Pipeline->Illuminate\\Routing\\{closure}(object(Request)) in AddQueuedCookiesToResponse.php line 37\r\nat AddQueuedCookiesToResponse->handle(object(Request), object(Closure)) in Pipeline.php line 137\r\nat Pipeline->Illuminate\\Pipeline\\{closure}(object(Request)) in Pipeline.php line 33\r\nat Pipeline->Illuminate\\Routing\\{closure}(object(Request)) in EncryptCookies.php line 59\r\nat EncryptCookies->handle(object(Request), object(Closure)) in Pipeline.php line 137\r\nat Pipeline->Illuminate\\Pipeline\\{closure}(object(Request)) in Pipeline.php line 33\r\nat Pipeline->Illuminate\\Routing\\{closure}(object(Request)) in Pipeline.php line 104\r\nat Pipeline->then(object(Closure)) in Router.php line 644\r\nat Router->runRouteWithinStack(object(Route), object(Request)) in Router.php line 618\r\nat Router->dispatchToRoute(object(Request)) in Router.php line 596\r\nat Router->dispatch(object(Request)) in Kernel.php line 267\r\nat Kernel->Illuminate\\Foundation\\Http\\{closure}(object(Request)) in Pipeline.php line 53\r\nat Pipeline->Illuminate\\Routing\\{closure}(object(Request)) in CheckForMaintenanceMode.php line 46\r\nat CheckForMaintenanceMode->handle(object(Request), object(Closure)) in Pipeline.php line 137\r\nat Pipeline->Illuminate\\Pipeline\\{closure}(object(Request)) in Pipeline.php line 33\r\nat Pipeline->Illuminate\\Routing\\{closure}(object(Request)) in Pipeline.php line 104\r\nat Pipeline->then(object(Closure)) in Kernel.php line 149\r\nat Kernel->sendRequestThroughRouter(object(Request)) in Kernel.php line 116\r\nat Kernel->handle(object(Request)) in index.php line 53\r\nat require_once('/home/jaonoctus/htdocs/laravel/public/index.php') in server.php line 21\r\n```"},"comment":{"url":"https://api.github.com/repos/artesaos/defender/issues/comments/244809463","html_url":"https://github.com/artesaos/defender/issues/102#issuecomment-244809463","issue_url":"https://api.github.com/repos/artesaos/defender/issues/102","id":244809463,"user":{"login":"mauri870","id":10168637,"avatar_url":"https://avatars.githubusercontent.com/u/10168637?v=3","gravatar_id":"","url":"https://api.github.com/users/mauri870","html_url":"https://github.com/mauri870","followers_url":"https://api.github.com/users/mauri870/followers","following_url":"https://api.github.com/users/mauri870/following{/other_user}","gists_url":"https://api.github.com/users/mauri870/gists{/gist_id}","starred_url":"https://api.github.com/users/mauri870/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mauri870/subscriptions","organizations_url":"https://api.github.com/users/mauri870/orgs","repos_url":"https://api.github.com/users/mauri870/repos","events_url":"https://api.github.com/users/mauri870/events{/privacy}","received_events_url":"https://api.github.com/users/mauri870/received_events","type":"User","site_admin":false},"created_at":"2016-09-05T20:43:47Z","updated_at":"2016-09-05T20:43:47Z","body":"The error apparently is originated after the compilation\r\n\r\n```\r\n@shield('user.index')\r\n     Hello\r\n@endshield\r\n```\r\nGenerate:\r\n```\r\n<?php if(app('defender')->canDo'user.index'): ?>\r\n            Hello\r\n<?php endif; ?>\r\n```"}}
{"actor":{"display_login":"mauri870"}}