Removido whereHas porque rompe el metodo
This commit is contained in:
parent
11d8bd1920
commit
e521b4521f
1 changed files with 0 additions and 3 deletions
|
@ -295,9 +295,6 @@ class GrupoDeCompra extends Model
|
|||
public static function barriosMenosPruebaConPedidosAprobados(): Builder
|
||||
{
|
||||
return self::where('nombre', '<>', 'PRUEBA')
|
||||
->whereHas('subpedidos', function ($query) {
|
||||
$query->where('aprobado', true);
|
||||
})
|
||||
->orderBy('region')
|
||||
->orderBy('nombre');
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue