{"action":"opened","issue":{"url":"https://api.github.com/repos/GeneaLabs/laravel-weblog/issues/7","repository_url":"https://api.github.com/repos/GeneaLabs/laravel-weblog","labels_url":"https://api.github.com/repos/GeneaLabs/laravel-weblog/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/GeneaLabs/laravel-weblog/issues/7/comments","events_url":"https://api.github.com/repos/GeneaLabs/laravel-weblog/issues/7/events","html_url":"https://github.com/GeneaLabs/laravel-weblog/issues/7","id":168479609,"number":7,"title":"Category Model Post Relationship","user":{"login":"drparham","id":2704700,"avatar_url":"https://avatars.githubusercontent.com/u/2704700?v=3","gravatar_id":"","url":"https://api.github.com/users/drparham","html_url":"https://github.com/drparham","followers_url":"https://api.github.com/users/drparham/followers","following_url":"https://api.github.com/users/drparham/following{/other_user}","gists_url":"https://api.github.com/users/drparham/gists{/gist_id}","starred_url":"https://api.github.com/users/drparham/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/drparham/subscriptions","organizations_url":"https://api.github.com/users/drparham/orgs","repos_url":"https://api.github.com/users/drparham/repos","events_url":"https://api.github.com/users/drparham/events{/privacy}","received_events_url":"https://api.github.com/users/drparham/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-07-30T18:07:59Z","updated_at":"2016-07-30T18:07:59Z","closed_at":null,"body":"This is saying Categories have ONE post. Where a Post only belongsTo one Category (based on relationship in the Post model). \r\n\r\n```\r\npublic function post() : HasOne\r\n    {\r\n        return $this->hasOne(Post::class);\r\n    }\r\n```\r\n\r\nIt should be HasMany, since a category will contain many posts, but a post will only belong to a single categroy.\r\n\r\n```\r\npublic function post() : HasMany\r\n    {\r\n        return $this->hasMany(Post::class);\r\n    }\r\n```\r\n\r\nOr do you want to allow a post to belong to more then one category? What do you see as the main difference between a category and a tag?\r\n"}}
{"actor":{"display_login":"drparham"}}