I recently added pagination in Laravel project. so I receive json data like this:
{"per_page":1,"current_page":1,"next_page_url":null,"prev_page_url":null,"from":null,"to":null,"data":[]}
before I use to get []
so my if condition use to be
@if($send_requests == '[]')
How can I check if data is empty in above json ?
I tried:
@if($send_requests->data == '[]')
it does not seem to work like that.
from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2sfkcR5
via IFTTT
Aucun commentaire:
Enregistrer un commentaire