This commit is contained in:
18
api/app/Services/Sigtap/FinanciamentoService.php
Normal file
18
api/app/Services/Sigtap/FinanciamentoService.php
Normal file
@@ -0,0 +1,18 @@
|
||||
<?php
|
||||
|
||||
namespace App\Services\Sigtap;
|
||||
|
||||
use App\Models\Sigtap\Financiamento;
|
||||
use App\Services\Service;
|
||||
|
||||
class FinanciamentoService extends Service
|
||||
{
|
||||
public static function index()
|
||||
{
|
||||
$where = self::getWhereFromQueryString([
|
||||
'competencia_id',
|
||||
]);
|
||||
|
||||
return self::get(Financiamento::class)->where($where)->select(['id', 'nome'])->orderBy('nome')->get();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user