This commit is contained in:
20
api/app/Services/Integracao/Bnafar/MedicamentoService.php
Normal file
20
api/app/Services/Integracao/Bnafar/MedicamentoService.php
Normal file
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
|
||||
namespace App\Services\Integracao\Bnafar;
|
||||
|
||||
use App\Services\Service;
|
||||
use Illuminate\Support\Facades\DB;
|
||||
|
||||
class MedicamentoService extends Service
|
||||
{
|
||||
public static function autocomplete()
|
||||
{
|
||||
return DB::table('integracao_bnafar_medicamento')
|
||||
->select([
|
||||
'id',
|
||||
'codigo',
|
||||
'descricao',
|
||||
])
|
||||
->when(request()->ids, fn ($q, $ids) => $q->whereNotIn('id', $ids));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user