{"action":"created","issue":{"url":"https://api.github.com/repos/jenssegers/laravel-mongodb/issues/497","labels_url":"https://api.github.com/repos/jenssegers/laravel-mongodb/issues/497/labels{/name}","comments_url":"https://api.github.com/repos/jenssegers/laravel-mongodb/issues/497/comments","events_url":"https://api.github.com/repos/jenssegers/laravel-mongodb/issues/497/events","html_url":"https://github.com/jenssegers/laravel-mongodb/issues/497","id":77693288,"number":497,"title":"Missing argument 1 for ...\\Blueprint::primary()","user":{"login":"gianx89","id":733323,"avatar_url":"https://avatars.githubusercontent.com/u/733323?v=3","gravatar_id":"","url":"https://api.github.com/users/gianx89","html_url":"https://github.com/gianx89","followers_url":"https://api.github.com/users/gianx89/followers","following_url":"https://api.github.com/users/gianx89/following{/other_user}","gists_url":"https://api.github.com/users/gianx89/gists{/gist_id}","starred_url":"https://api.github.com/users/gianx89/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gianx89/subscriptions","organizations_url":"https://api.github.com/users/gianx89/orgs","repos_url":"https://api.github.com/users/gianx89/repos","events_url":"https://api.github.com/users/gianx89/events{/privacy}","received_events_url":"https://api.github.com/users/gianx89/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-05-18T15:14:10Z","updated_at":"2015-05-24T08:55:37Z","closed_at":"2015-05-24T08:55:37Z","body":"I've correctly set up mondo db on my laravel 5 installation. Now I'm also using this package https://github.com/lucadegasperi/oauth2-server-laravel . When I run:\r\n\r\n```\r\nphp artisan vendor:publish\r\nphp artisan migrate\r\n```\r\n\r\nI receive this error:\r\n\r\n>  [ErrorException]                                                                                                                                                                  \r\n  Missing argument 1 for Illuminate\\Database\\Schema\\Blueprint::primary(), called in /Users/AAA/BBB/database/migrations/2015_01_01_000001_create_oauth_scopes_table.php on line 17 and defined\r\n\r\nI run the migrations with a mysql db, no errors. This error occours in every migration where there's something like this:\r\n\r\n```\r\n$table->string('id', 40)->primary();\r\n```\r\n\r\nIf I change it to:\r\n```\r\n$table->string('id', 40)->primary('id');\r\n```\r\n\r\nAll works fine with mongodb. So, is it a bug? Is an intentional behaviour? Let me know and, if it's possibile, help me.\r\n\r\nBest regards"},"comment":{"url":"https://api.github.com/repos/jenssegers/laravel-mongodb/issues/comments/104993270","html_url":"https://github.com/jenssegers/laravel-mongodb/issues/497#issuecomment-104993270","issue_url":"https://api.github.com/repos/jenssegers/laravel-mongodb/issues/497","id":104993270,"user":{"login":"jenssegers","id":194377,"avatar_url":"https://avatars.githubusercontent.com/u/194377?v=3","gravatar_id":"","url":"https://api.github.com/users/jenssegers","html_url":"https://github.com/jenssegers","followers_url":"https://api.github.com/users/jenssegers/followers","following_url":"https://api.github.com/users/jenssegers/following{/other_user}","gists_url":"https://api.github.com/users/jenssegers/gists{/gist_id}","starred_url":"https://api.github.com/users/jenssegers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jenssegers/subscriptions","organizations_url":"https://api.github.com/users/jenssegers/orgs","repos_url":"https://api.github.com/users/jenssegers/repos","events_url":"https://api.github.com/users/jenssegers/events{/privacy}","received_events_url":"https://api.github.com/users/jenssegers/received_events","type":"User","site_admin":false},"created_at":"2015-05-24T08:55:37Z","updated_at":"2015-05-24T08:55:37Z","body":"Should be fixed on dev-master."}}