andersao / andersao/l5-repository

Not working orderBy in Views

Aperta
#526 1 commento 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
PHP
Stelle
4.2k
Fork
880
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

I am usigin repository service in blade templates, like this;

`@inject('global_question', 'App\Repositories\QuestionRepository')`

and then;

```
@foreach($global_question->orderBy('id', 'asc') as $gq)


@endforeach
```

But its return empty, I tried ->all() its works. but not orderBy().

Thnx for reply.

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.