andersao / andersao/l5-repository
Not working orderBy in Views
Aperta
- 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)
{{$gq->title}}
@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.