Support the ongoing development of Laravel.io →
posted 10 years ago
Database

i have strange issue i have a table with a column of longtext. when i use laravel to retrieve the data many of the long text are cut off.

however if i use the php build in method (mysqli_connect, mysqli_query etc) the data retreive are not cut off

folks any idea what is going on? is there some parameter i can set in laravel?

thanks hy

Last updated 2 years ago.
0

found the solution had to set the config.database.connection.mysql with an options => PDO::MYSQL_ATTR_MAX_BUFFER_SIZE' => a large enogh number

i think the default size limit is 1MB

Last updated 2 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2025 Laravel.io - All rights reserved.