how can I make laravel dump output the contents of a multidimensional array to the browser immediately in the expanded state (not folded)? I know I can Ctrl+Click, but I want the array to be expanded by default. I probably need to set up a Var-dumper. But how do I do that in Laravel?
I've tried something, but nothing worker out
use Symfony\Component\VarDumper\Cloner\VarCloner;
use Symfony\Component\VarDumper\Dumper\CliDumper;
$cloner = new VarCloner();
$dumper = new CliDumper();
$cloner->setMaxItems(-1);
$cloner->setMinDepth(1000);
$cloner->setMaxString(10000);
$dumper->dump($cloner->cloneVar(['one', 'two', 'three' => ['one', 'two']]));
dump(['one', 'two', 'three' => ['one', 'two']]);
Unfortunately this isn't in Laravel, but you can use Tampermonkey (browser extension) to do this as-per this post.
Install Tampermonkey > Click Extension icon > Create New Script > Change
@matchbelow to match your domain(s) > Save. Reload your page and you should be good to go - I have tested using your code and it works well.