jeudi 2 août 2018

How can I check if collection empty in view blade laravel?

If I dd($items); in the controller, the result like this :

enter image description here

In the view blade laravel I check if collection empty like this :

@if($items)
...
@endif

But it does not work

How can I solve this problem?

Aucun commentaire:

Enregistrer un commentaire