first upload all files
This commit is contained in:
24
Modules/Brand/Admin/BrandTable.php
Normal file
24
Modules/Brand/Admin/BrandTable.php
Normal file
@@ -0,0 +1,24 @@
|
||||
<?php
|
||||
|
||||
namespace Modules\Brand\Admin;
|
||||
|
||||
use Modules\Admin\Ui\AdminTable;
|
||||
use Modules\Brand\Entities\Brand;
|
||||
|
||||
class BrandTable extends AdminTable
|
||||
{
|
||||
/**
|
||||
* Make table response for the resource.
|
||||
*
|
||||
* @return \Illuminate\Http\JsonResponse
|
||||
*/
|
||||
public function make()
|
||||
{
|
||||
return $this->newTable()
|
||||
->addColumn('logo', function (Brand $brand) {
|
||||
return view('admin::partials.table.image', [
|
||||
'file' => $brand->logo,
|
||||
]);
|
||||
});
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user