How to check object of a model is empty in laravel?
If you have eloquent collection, call the function isEmpty()
like this:
$persons->isEmpty();
This return true or false. Hope this helps.
You can use the isEmpty method:
http://laravel.com/api/5.0/Illuminate/Support/Collection.html#method_isEmpty