How to create a column with 1, 2 ,3.. number on GRID not base on the column on model
@z-song Any suggestion ?
I just pushed a commit cdad43b to make number property of Grid\Row public, so you can do this:
$grid->rows(function (Grid\Row $row) {
$row->column('number', $row->number);
});
// Your custom column.
$grid->column('number');
Update laravel-admin to 1.5.x-dev
It is working

$grid->rows(function (Grid\Row $row) {
$xRow = Photo::find($row->id);
$img = '';
$row->column('Image', $img);
});
$grid->column('Image');
Most helpful comment
I just pushed a commit cdad43b to make
numberproperty ofGrid\Rowpublic, so you can do this:Update laravel-admin to
1.5.x-dev