Php-api only returns some results

I know I’ve seen this somewhere but I can’t find it.

The code below only returns an array of 15 clients InvoiceNinja\Models\Client Object [0] - > [14]

$clients = Client::all();
$o = print_r($clients, true);
file_put_contents('/tmp/client.txt', $o);

I seem to remember that there’s something I needed to set to get them all, but I can’t remember what.

Any idea?




You can use the setPerPage config method

That was it! Thank you very much.

I know it was a setting but couldn’t quite come up with the right google query to find it.