Added order by id logic in panel box validation
Some checks failed
Gemini PR Review / Gemini PR Review (pull_request) Failing after 17s
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 29s
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (pull_request) Successful in 26s
Laravel Pint / pint (pull_request) Successful in 1m53s
Laravel Larastan / larastan (pull_request) Failing after 6m42s

This commit is contained in:
dhanabalan
2026-08-18 15:28:58 +05:30
parent 5823a6b3d1
commit a8bd7a781c

View File

@@ -98,6 +98,7 @@ class CreatePanelBoxValidation extends CreateRecord {
$this->existingRecords = ProductCharacteristicsMaster::where('plant_id', $plantId)
->where('category', $categoryName)
->where('line_id', $lineId)
->orderBy('id', 'asc')
->get();
return $this->existingRecords->isNotEmpty();