| xqd
@@ -20,7 +20,7 @@ class ProductController extends AdminController
|
|
|
protected function grid()
|
|
|
{
|
|
|
return Grid::make(new Product(), function (Grid $grid) {
|
|
|
- $grid->model()->orderByDesc('id');
|
|
|
+ $grid->model()->with('user:id,name')->orderByDesc('id');
|
|
|
$grid->column('id')->sortable();
|
|
|
|
|
|
$grid->column('image')->image('',40);
|