I have an array of 320 arrays, while regular var_dump
shows me exactly 320 elements with all nested elements, Laravel's dd
helper truncates the nested element at index 147 and all the further elements are truncated with no option to expand them, see the example below
146 => array:17 [▼
"total_unconfirmed_subscribers" => 0
"total_subscribers_subscribed_yesterday" => 0
"unique_list_id" => "24324"
"http_etag" => ""fbb6febfca8af5541541ea960aaedb""
"web_form_split_tests_collection_link" => "https://api.com/1.0/"
"subscribers_collection_link" => "https://api.com/1.0/"
"total_subscribers_subscribed_today" => 0
"id" => 23432
"total_subscribed_subscribers" => 0
"total_unsubscribed_subscribers" => 0
"campaigns_collection_link" => "https://api.com/1.0/"
"custom_fields_collection_link" => "https://api.com/1.0/accounts"
"self_link" => "https://api.com/1.0/accounts"
"total_subscribers" => 0
"resource_type_link" => "https://api.com/1.0/#list"
"web_forms_collection_link" => "https://api.com/"
"name" => "dccode"
]
147 => array:17 [▼
"total_unconfirmed_subscribers" => 0
…16
]
148 => array:17 [ …17]
149 => array:17 [ …17]
Why is it limited to 147 full records and how to increase the limit? The related topic Is Laravels' DD helper function working properly? doesn't actually explain the limits.
This is pretty consistent behavior, I've tested with Laravel 5.2 and php7 on
- Linux (Laravel Forge, DO droplet, Ubuntu)
- Mac (Laravel Valet)
- Windows (valet4windows)
Everywhere got exactly the same cut on element #147. Using CLI php artisan tinker
outputs the same cut
...
"name" => "dccode" ] 147 => array:17 [
"total_unconfirmed_subscribers" => 0
16 ] 148 => array:17 [ 17]
...