{"action":"closed","issue":{"url":"https://api.github.com/repos/z-song/laravel-admin/issues/240","repository_url":"https://api.github.com/repos/z-song/laravel-admin","labels_url":"https://api.github.com/repos/z-song/laravel-admin/issues/240/labels{/name}","comments_url":"https://api.github.com/repos/z-song/laravel-admin/issues/240/comments","events_url":"https://api.github.com/repos/z-song/laravel-admin/issues/240/events","html_url":"https://github.com/z-song/laravel-admin/issues/240","id":197602711,"number":240,"title":"[HELP] How to get id row in $grid to add to custom action.","user":{"login":"taimaiduc","id":10907980,"avatar_url":"https://avatars.githubusercontent.com/u/10907980?v=3","gravatar_id":"","url":"https://api.github.com/users/taimaiduc","html_url":"https://github.com/taimaiduc","followers_url":"https://api.github.com/users/taimaiduc/followers","following_url":"https://api.github.com/users/taimaiduc/following{/other_user}","gists_url":"https://api.github.com/users/taimaiduc/gists{/gist_id}","starred_url":"https://api.github.com/users/taimaiduc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/taimaiduc/subscriptions","organizations_url":"https://api.github.com/users/taimaiduc/orgs","repos_url":"https://api.github.com/users/taimaiduc/repos","events_url":"https://api.github.com/users/taimaiduc/events{/privacy}","received_events_url":"https://api.github.com/users/taimaiduc/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-12-26T16:29:38Z","updated_at":"2016-12-29T14:29:29Z","closed_at":"2016-12-29T14:29:29Z","body":"how to get id of each $grid and add to custom action.\r\n```\r\n$grid->rows(function($row) use ($grid) {\r\n              $row->actions('view');\r\n              $row->actions()->add(function ($row) use ($grid) {\r\n                $link = '';\r\n                $link = route('backend_employee_detail', $grid->id());\r\n                return \"<a href='\" . $link .\"' class=><i class=\\\"fa fa-eye\\\"></i></a>\";\r\n            });\r\n          });\r\n```"}}
{"actor":{"display_login":"taimaiduc"}}