{"action":"opened","issue":{"url":"https://api.github.com/repos/Laravel-Backpack/CRUD/issues/330","repository_url":"https://api.github.com/repos/Laravel-Backpack/CRUD","labels_url":"https://api.github.com/repos/Laravel-Backpack/CRUD/issues/330/labels{/name}","comments_url":"https://api.github.com/repos/Laravel-Backpack/CRUD/issues/330/comments","events_url":"https://api.github.com/repos/Laravel-Backpack/CRUD/issues/330/events","html_url":"https://github.com/Laravel-Backpack/CRUD/issues/330","id":197904694,"number":330,"title":"Dynamically adding new items to the database via select2 ","user":{"login":"madd86","id":23120598,"avatar_url":"https://avatars.githubusercontent.com/u/23120598?v=3","gravatar_id":"","url":"https://api.github.com/users/madd86","html_url":"https://github.com/madd86","followers_url":"https://api.github.com/users/madd86/followers","following_url":"https://api.github.com/users/madd86/following{/other_user}","gists_url":"https://api.github.com/users/madd86/gists{/gist_id}","starred_url":"https://api.github.com/users/madd86/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/madd86/subscriptions","organizations_url":"https://api.github.com/users/madd86/orgs","repos_url":"https://api.github.com/users/madd86/repos","events_url":"https://api.github.com/users/madd86/events{/privacy}","received_events_url":"https://api.github.com/users/madd86/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-12-28T19:34:16Z","updated_at":"2016-12-28T19:34:16Z","closed_at":null,"body":"The logic should be simple enough.\r\n\r\n1. Route that calls a function on the controller. Perhaps something like category/create/{name}\r\n\r\n2. Function on the controller will then add the new request to the database.\r\n\r\n3. This is the complicated part. Instead of returning \"No Matches Found\" on select2, there should be a clickable link with something like, \"Add new record\". It'd be good to refresh only the view instead of the whole page, not sure how to do that.\r\n\r\nI'm not proficient enough in Javascript to dab in select2.js, any help?"}}
{"actor":{"display_login":"madd86"}}