Consistency and SQL Query optimisations - focused around the UI
This commit is contained in:
@@ -29,7 +29,7 @@ use App\Models\System;
|
||||
@foreach (System::select(['systems.id','systems.name'])
|
||||
->active()
|
||||
->where('id','<>',$setup->system_id)
|
||||
->whereRaw('id NOT IN (SELECT system_id FROM system_user)')
|
||||
->whereRaw('id NOT IN (SELECT system_id FROM "system_user")')
|
||||
->cursor() as $oo)
|
||||
<option value="{{ $oo->id }}" @if(old('id')===$oo->id)selected @endif>{{ $oo->name }}</option>
|
||||
@endforeach
|
||||
|
Reference in New Issue
Block a user