{"action":"created","issue":{"url":"https://api.github.com/repos/yajra/laravel-datatables-html/issues/13","repository_url":"https://api.github.com/repos/yajra/laravel-datatables-html","labels_url":"https://api.github.com/repos/yajra/laravel-datatables-html/issues/13/labels{/name}","comments_url":"https://api.github.com/repos/yajra/laravel-datatables-html/issues/13/comments","events_url":"https://api.github.com/repos/yajra/laravel-datatables-html/issues/13/events","html_url":"https://github.com/yajra/laravel-datatables-html/pull/13","id":238431102,"number":13,"title":"Add minifiedAjax method to minify url generated when using get request.","user":{"login":"yajra","id":2687997,"avatar_url":"https://avatars0.githubusercontent.com/u/2687997?v=3","gravatar_id":"","url":"https://api.github.com/users/yajra","html_url":"https://github.com/yajra","followers_url":"https://api.github.com/users/yajra/followers","following_url":"https://api.github.com/users/yajra/following{/other_user}","gists_url":"https://api.github.com/users/yajra/gists{/gist_id}","starred_url":"https://api.github.com/users/yajra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yajra/subscriptions","organizations_url":"https://api.github.com/users/yajra/orgs","repos_url":"https://api.github.com/users/yajra/repos","events_url":"https://api.github.com/users/yajra/events{/privacy}","received_events_url":"https://api.github.com/users/yajra/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-06-26T03:03:34Z","updated_at":"2017-06-26T10:19:20Z","closed_at":"2017-06-26T04:05:09Z","pull_request":{"url":"https://api.github.com/repos/yajra/laravel-datatables-html/pulls/13","html_url":"https://github.com/yajra/laravel-datatables-html/pull/13","diff_url":"https://github.com/yajra/laravel-datatables-html/pull/13.diff","patch_url":"https://github.com/yajra/laravel-datatables-html/pull/13.patch"},"body":"Fixes php artisan serve and IE issues on long URL.\r\nRelated Issues:\r\nhttps://github.com/yajra/laravel-datatables/issues/1225\r\nhttps://github.com/yajra/laravel-datatables/issues/1205\r\nhttps://github.com/yajra/laravel-datatables/pull/826\r\nhttps://github.com/yajra/laravel-datatables/pull/671\r\netc..\r\n\r\n### USAGE\r\nUpdate html method on your service class to:\r\n```php\r\n    /**\r\n     * Optional method if you want to use html builder.\r\n     *\r\n     * @return \\Yajra\\Datatables\\Html\\Builder\r\n     */\r\n    public function html()\r\n    {\r\n        return $this->builder()\r\n                    ->columns($this->getColumns())\r\n                    ->minifiedAjax()\r\n                    ->addAction(['width' => '80px'])\r\n                    ->parameters($this->getBuilderParameters());\r\n    }\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/yajra/laravel-datatables-html/issues/comments/311020323","html_url":"https://github.com/yajra/laravel-datatables-html/pull/13#issuecomment-311020323","issue_url":"https://api.github.com/repos/yajra/laravel-datatables-html/issues/13","id":311020323,"user":{"login":"isometriq","id":4261000,"avatar_url":"https://avatars3.githubusercontent.com/u/4261000?v=3","gravatar_id":"","url":"https://api.github.com/users/isometriq","html_url":"https://github.com/isometriq","followers_url":"https://api.github.com/users/isometriq/followers","following_url":"https://api.github.com/users/isometriq/following{/other_user}","gists_url":"https://api.github.com/users/isometriq/gists{/gist_id}","starred_url":"https://api.github.com/users/isometriq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/isometriq/subscriptions","organizations_url":"https://api.github.com/users/isometriq/orgs","repos_url":"https://api.github.com/users/isometriq/repos","events_url":"https://api.github.com/users/isometriq/events{/privacy}","received_events_url":"https://api.github.com/users/isometriq/received_events","type":"User","site_admin":false},"created_at":"2017-06-26T10:19:20Z","updated_at":"2017-06-26T10:19:20Z","body":"I've tested using `minifiedAjax` method, but columns ordering and search is not working (applied). Data is transmitted, but with model default ordering. I can see lesser GET params are sent which does not cause 404 anymore, but maybe some necessary info is being stripped?\r\n\r\nLooks like a step in the right direction 👍 \r\n\r\nMy observations:\r\n-I feel that sending data thru GET with PHP format is too much. If you take APIs, the format is generally very compact such as `?q=search-value&f=field1|field2|field3&o=field1,asc|field2,desc`. I don't know all the intricacies of DataTables, so I may not be aware of some limitations...\r\n-I think also sticking to GET method is necessary, since POST is for something else"}}
{"actor":{"display_login":"isometriq"}}