User can add/edit flights
This commit is contained in:
1 parent
0f84ec023e
commit
a9aa65f0d2
12 files changed
+266
-20
No files matched your search
@@ -34,6 +34,7 @@ class SearchController extends Controller
|
||||
return Aircraft::where('designator', 'ilike', "%{$q}%")
|
||||
->orWhereRaw("CONCAT(manufacturer_code, ' ', model_full_name) ilike ?", ["%{$q}%"])
|
||||
->limit(200)
|
||||
->orderBy('id', 'asc')
|
||||
->get(['id', 'manufacturer_code', 'model_full_name', 'designator'])
|
||||
->map(fn($a) => [
|
||||
'value' => $a->id,
|
||||
|
||||
Reference in new issue
Block a user