{"action":"created","issue":{"url":"https://api.github.com/repos/BRACKETS-by-TRIAD/craftable/issues/41","repository_url":"https://api.github.com/repos/BRACKETS-by-TRIAD/craftable","labels_url":"https://api.github.com/repos/BRACKETS-by-TRIAD/craftable/issues/41/labels{/name}","comments_url":"https://api.github.com/repos/BRACKETS-by-TRIAD/craftable/issues/41/comments","events_url":"https://api.github.com/repos/BRACKETS-by-TRIAD/craftable/issues/41/events","html_url":"https://github.com/BRACKETS-by-TRIAD/craftable/issues/41","id":340526610,"node_id":"MDU6SXNzdWUzNDA1MjY2MTA=","number":41,"title":"error after php artisan craftable:install","user":{"login":"kenmdavids","id":10721732,"node_id":"MDQ6VXNlcjEwNzIxNzMy","avatar_url":"https://avatars2.githubusercontent.com/u/10721732?v=4","gravatar_id":"","url":"https://api.github.com/users/kenmdavids","html_url":"https://github.com/kenmdavids","followers_url":"https://api.github.com/users/kenmdavids/followers","following_url":"https://api.github.com/users/kenmdavids/following{/other_user}","gists_url":"https://api.github.com/users/kenmdavids/gists{/gist_id}","starred_url":"https://api.github.com/users/kenmdavids/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kenmdavids/subscriptions","organizations_url":"https://api.github.com/users/kenmdavids/orgs","repos_url":"https://api.github.com/users/kenmdavids/repos","events_url":"https://api.github.com/users/kenmdavids/events{/privacy}","received_events_url":"https://api.github.com/users/kenmdavids/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"dejwCake","id":22255647,"node_id":"MDQ6VXNlcjIyMjU1NjQ3","avatar_url":"https://avatars0.githubusercontent.com/u/22255647?v=4","gravatar_id":"","url":"https://api.github.com/users/dejwCake","html_url":"https://github.com/dejwCake","followers_url":"https://api.github.com/users/dejwCake/followers","following_url":"https://api.github.com/users/dejwCake/following{/other_user}","gists_url":"https://api.github.com/users/dejwCake/gists{/gist_id}","starred_url":"https://api.github.com/users/dejwCake/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dejwCake/subscriptions","organizations_url":"https://api.github.com/users/dejwCake/orgs","repos_url":"https://api.github.com/users/dejwCake/repos","events_url":"https://api.github.com/users/dejwCake/events{/privacy}","received_events_url":"https://api.github.com/users/dejwCake/received_events","type":"User","site_admin":false},"assignees":[{"login":"dejwCake","id":22255647,"node_id":"MDQ6VXNlcjIyMjU1NjQ3","avatar_url":"https://avatars0.githubusercontent.com/u/22255647?v=4","gravatar_id":"","url":"https://api.github.com/users/dejwCake","html_url":"https://github.com/dejwCake","followers_url":"https://api.github.com/users/dejwCake/followers","following_url":"https://api.github.com/users/dejwCake/following{/other_user}","gists_url":"https://api.github.com/users/dejwCake/gists{/gist_id}","starred_url":"https://api.github.com/users/dejwCake/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dejwCake/subscriptions","organizations_url":"https://api.github.com/users/dejwCake/orgs","repos_url":"https://api.github.com/users/dejwCake/repos","events_url":"https://api.github.com/users/dejwCake/events{/privacy}","received_events_url":"https://api.github.com/users/dejwCake/received_events","type":"User","site_admin":false}],"milestone":null,"comments":7,"created_at":"2018-07-12T07:51:33Z","updated_at":"2018-10-28T11:04:07Z","closed_at":null,"author_association":"NONE","body":"craftable installs successfully but cant run any artisan commands, like config:cache, serve etc\r\nit returns error\r\nIn ClassLoader.php line 444:\r\n\r\n  include(C:\\wamp\\www\\craft\\vendor\\composer/../../app/User.php): failed to open stream: No such file or directory"},"comment":{"url":"https://api.github.com/repos/BRACKETS-by-TRIAD/craftable/issues/comments/433695100","html_url":"https://github.com/BRACKETS-by-TRIAD/craftable/issues/41#issuecomment-433695100","issue_url":"https://api.github.com/repos/BRACKETS-by-TRIAD/craftable/issues/41","id":433695100,"node_id":"MDEyOklzc3VlQ29tbWVudDQzMzY5NTEwMA==","user":{"login":"kenmdavids","id":10721732,"node_id":"MDQ6VXNlcjEwNzIxNzMy","avatar_url":"https://avatars2.githubusercontent.com/u/10721732?v=4","gravatar_id":"","url":"https://api.github.com/users/kenmdavids","html_url":"https://github.com/kenmdavids","followers_url":"https://api.github.com/users/kenmdavids/followers","following_url":"https://api.github.com/users/kenmdavids/following{/other_user}","gists_url":"https://api.github.com/users/kenmdavids/gists{/gist_id}","starred_url":"https://api.github.com/users/kenmdavids/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kenmdavids/subscriptions","organizations_url":"https://api.github.com/users/kenmdavids/orgs","repos_url":"https://api.github.com/users/kenmdavids/repos","events_url":"https://api.github.com/users/kenmdavids/events{/privacy}","received_events_url":"https://api.github.com/users/kenmdavids/received_events","type":"User","site_admin":false},"created_at":"2018-10-28T11:04:07Z","updated_at":"2018-10-28T11:04:07Z","author_association":"NONE","body":"@palypster Hello, I managed to install craftable successfully through this method  ```\r\ncraftable new --no-install project_name\r\nphp artisan craftable:init-env\r\nphp artisan craftable:install\r\nnpm install\r\nnpm run dev\r\n```, \r\nthe reply below was actually the issue, I put User.php in the app folder and I renamed the namespace\r\n\r\n> Craftable installation defaulty deletes the `app/User.php` model and generates new one in `app/Models/User.php`. I guess the error has something to do with it. Can you check?\r\n\r\nHowever now when i login through admin it returns unauthorized error\r\n```\r\n public function handle($request, Closure $next)\r\n    {\r\n        if ( Auth::check() && Auth::user()->can('admin') )\r\n        {\r\n            return $next($request);\r\n        }\r\n \r\n        if (!Auth::check()) {\r\n            return redirect()->guest('/admin/login');\r\n        } else {\r\n            throw new UnauthorizedException('Unathorized');\r\n        }\r\n    }\r\n```\r\non` …\\vendor\\brackets\\admin-auth\\src\\Http\\Middleware\\Admin.php:30`"}}
{"actor":{"display_login":"kenmdavids"}}