add url field for plugins' package.json

This commit is contained in:
printempw 2017-01-14 20:26:38 +08:00
parent 3fcb991ac7
commit ad159c7f20

View File

@ -81,6 +81,9 @@ class PluginController extends Controller
->editColumn('description', function ($plugin) {
return trans($plugin->description);
})
->editColumn('author', function ($plugin) {
return "<a href='{$plugin->url}' target='_blank'>".trans($plugin->author)."</a>";
})
->addColumn('status', function ($plugin) {
return trans('admin.plugins.status.'.($plugin->isEnabled() ? 'enabled' : 'disabled'));
})