{"action":"created","issue":{"url":"https://api.github.com/repos/bradcornford/Googlmapper/issues/200","repository_url":"https://api.github.com/repos/bradcornford/Googlmapper","labels_url":"https://api.github.com/repos/bradcornford/Googlmapper/issues/200/labels{/name}","comments_url":"https://api.github.com/repos/bradcornford/Googlmapper/issues/200/comments","events_url":"https://api.github.com/repos/bradcornford/Googlmapper/issues/200/events","html_url":"https://github.com/bradcornford/Googlmapper/issues/200","id":259670492,"number":200,"title":"publish works on fresh 5.5 install - gives non-static method error","user":{"login":"jhoskins98","id":1794882,"avatar_url":"https://avatars1.githubusercontent.com/u/1794882?v=4","gravatar_id":"","url":"https://api.github.com/users/jhoskins98","html_url":"https://github.com/jhoskins98","followers_url":"https://api.github.com/users/jhoskins98/followers","following_url":"https://api.github.com/users/jhoskins98/following{/other_user}","gists_url":"https://api.github.com/users/jhoskins98/gists{/gist_id}","starred_url":"https://api.github.com/users/jhoskins98/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jhoskins98/subscriptions","organizations_url":"https://api.github.com/users/jhoskins98/orgs","repos_url":"https://api.github.com/users/jhoskins98/repos","events_url":"https://api.github.com/users/jhoskins98/events{/privacy}","received_events_url":"https://api.github.com/users/jhoskins98/received_events","type":"User","site_admin":false},"labels":[{"id":168581019,"url":"https://api.github.com/repos/bradcornford/Googlmapper/labels/help%20wanted","name":"help wanted","color":"159818","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2017-09-22T00:31:29Z","updated_at":"2017-10-24T13:30:46Z","closed_at":null,"author_association":"NONE","body":"Getting - Non-static method Cornford\\Googlmapper\\Mapper::map() should not be called statically - on a 5.5 instance that I wanted to add maps to.  \r\n\r\nTo try and isolate I even did a fresh install and got the same thing.  Documentation says 'use Mapper;' but will only run if 'use Cornford\\Googlmapper\\Mapper;' is put in.   \r\n\r\nProblem #2 \r\nFollowed instructions ... but noticed that publish did not copy files on existing install but fresh install showed the files get copied.  \r\n\r\nDid a fresh install of 5.5 and then ran install of googlmapper and got \r\n```\r\n$php artisan vendor:publish --provider=\"Cornford\\Googlmapper\\MapperServiceProvider\" --tag=googlmapper\r\nCopied File [/vendor/cornford/googlmapper/src/config/config.php] To [/config/googlmapper.php]\r\nCopied Directory [/vendor/cornford/googlmapper/src/views] To [/resources/views/cornford/googlmapper]\r\nPublishing complete.\r\n```\r\n\r\nSo I know what was not copied and fixed that.  \r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/bradcornford/Googlmapper/issues/comments/338990456","html_url":"https://github.com/bradcornford/Googlmapper/issues/200#issuecomment-338990456","issue_url":"https://api.github.com/repos/bradcornford/Googlmapper/issues/200","id":338990456,"user":{"login":"bradcornford","id":2913887,"avatar_url":"https://avatars2.githubusercontent.com/u/2913887?v=4","gravatar_id":"","url":"https://api.github.com/users/bradcornford","html_url":"https://github.com/bradcornford","followers_url":"https://api.github.com/users/bradcornford/followers","following_url":"https://api.github.com/users/bradcornford/following{/other_user}","gists_url":"https://api.github.com/users/bradcornford/gists{/gist_id}","starred_url":"https://api.github.com/users/bradcornford/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bradcornford/subscriptions","organizations_url":"https://api.github.com/users/bradcornford/orgs","repos_url":"https://api.github.com/users/bradcornford/repos","events_url":"https://api.github.com/users/bradcornford/events{/privacy}","received_events_url":"https://api.github.com/users/bradcornford/received_events","type":"User","site_admin":false},"created_at":"2017-10-24T13:30:46Z","updated_at":"2017-10-24T13:30:46Z","author_association":"OWNER","body":"I've just tested this with a clean install of Laravel 5.5, using the installation instructions, with the following code and all seems to be working: \r\n\r\nLaravel-5.5/composer.json\r\n```php\r\n...\r\n    \"require\": {\r\n        \"php\": \">=7.0.0\",\r\n        \"fideloper/proxy\": \"~3.3\",\r\n        \"laravel/framework\": \"5.5.*\",\r\n        \"laravel/tinker\": \"~1.0\",\r\n        \"cornford/googlmapper\": \"2.*\"\r\n    },\r\n...\r\n```\r\n\r\nLaravel-5.5/config/app.php:\r\n```php\r\n...\r\n    Cornford\\Googlmapper\\MapperServiceProvider::class,\r\n...\r\n    'Mapper' => Cornford\\Googlmapper\\Facades\\MapperFacade::class,\r\n...\r\n```\r\n\r\nLaravel-5.5/routes/web.php:\r\n```php\r\nuse Cornford\\Googlmapper\\Facades\\MapperFacade as Mapper;\r\n\r\nRoute::get('/', function () {\r\n    Mapper::map(53.381128999999990000, -1.470085000000040000);\r\n\r\n    return view('welcome');\r\n});\r\n\r\n```\r\n\r\nLaravel-5.5/resources/views/welcome.blade.php:\r\n```html\r\n<!doctype html>\r\n<html lang=\"{{ app()->getLocale() }}\">\r\n    <head>\r\n        <meta charset=\"utf-8\">\r\n        <meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\">\r\n        <meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">\r\n\r\n        <title>Laravel</title>\r\n\r\n        <!-- Fonts -->\r\n        <link href=\"https://fonts.googleapis.com/css?family=Raleway:100,600\" rel=\"stylesheet\" type=\"text/css\">\r\n\r\n        <!-- Styles -->\r\n        <style></style>\r\n    </head>\r\n    <body>\r\n        <div style=\"height: 500px; width: 500px;\">\r\n            {!! Mapper::render() !!}\r\n        </div>\r\n    </body>\r\n</html>\r\n\r\n```\r\n\r\n<img width=\"494\" alt=\"screen shot 2017-10-24 at 14 28 08\" src=\"https://user-images.githubusercontent.com/2913887/31945623-9bde8f28-b8c7-11e7-84e5-2ce5231e2c87.png\">\r\n\r\nCan you try running `composer update` and `composer dump-autoload -o`?\r\n"}}
{"actor":{"display_login":"bradcornford"}}