fix code and add id for get
This commit is contained in:
@@ -12,7 +12,7 @@ use App\Models\Damage;
|
||||
use App\Services\Cartables\Damage\DamageService;
|
||||
use Illuminate\Http\JsonResponse;
|
||||
use Illuminate\Http\Request;
|
||||
use Maatwebsite\Excel\Excel;
|
||||
use Maatwebsite\Excel\Facades\Excel;
|
||||
use PhpOffice\PhpSpreadsheet\Exception;
|
||||
use Symfony\Component\HttpFoundation\BinaryFileResponse;
|
||||
|
||||
|
||||
@@ -18,7 +18,7 @@ class DamageService
|
||||
$request,
|
||||
allowedFilters: ['*'],
|
||||
allowedSortings: ['*'],
|
||||
allowedSelects: ['title', 'unit', 'base_price', 'status', 'update_time']
|
||||
allowedSelects: ['id', 'title', 'unit', 'base_price', 'status', 'update_time']
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user