toArray added in app.php