John Davidson

php - $var->toJson Does not show the complete message

0 comments
Message:


I'm trying to show to the customer all the items duplicated while using a CSV files importer in Laravel.


This is my line of code:


$importador->articulos_no_encontrados = $articulos_no_encontrados->toJson();

And the view shows the duplicities in an array, but the message end in [...] meaning that indeed there are more items to show but the customer cannot see them:



Can you help me to find a solution to show the full message with all the items instead of the [...]? Currently I'm using dd() everytime that happens but the customer should be able to see it too.


Thanks in advance.



My Answer:
$var = "Hello World";

Rate this post

4 of 5 based on 2549 votes

Comments




© 2024 Hayatsk.info - Personal Blogs Platform. All Rights Reserved.
Create blog  |  Privacy Policy  |  Terms & Conditions  |  Contact Us