1

My table field is Longtext, however when I try to save a text of length equal to 3 page of a text book. It saves in the db but not complete. It truncates the text. What is wrong, do Laravel set default max length of a payload? Is it a problem regarding my database?

Any kind of help is appreciated.

Table Schema

enter image description here

  • Show us your migration, please. – Piazzi Mar 12 '19 at 15:58
  • The controller's store method would also be useful in addition to the migration – Travis Britz Mar 12 '19 at 15:59
  • The post updated. –  Mar 12 '19 at 16:04
  • 1
    There are various limits to consider. LONGTEXT can fit 4GB of data so that's probably not the problem. The default maximum POST size for apache is 2MB so if you're using apache and trying to post more than 2mb you'd need to increase that. The default maximum GET url length is probably around 8kb so if you're using a GET request... don't. – apokryfos Mar 12 '19 at 16:09

0 Answers0