dwijitsolutions / laraadmin

LaraAdmin is a Open source Laravel Admin Panel / CMS which can be used as Admin Backend, Data Management Tool or CRM boilerplate for Laravel with features like Advanced CRUD Generation, Module Manager, Backups and many more.
http://laraadmin.com
MIT License
1.58k stars 537 forks source link

The content may not be greater than 256 characters. #292

Open iAnujParajuli opened 6 years ago

iAnujParajuli commented 6 years ago

I cannot insert big paragraphs using the fields. And when I increase the maximum size it displays

SQLSTATE[42000]: Syntax error or access violation: 1074 Column length too big for column 'content' (max = 21845); use BLOB or TEXT instead (SQL: ALTER TABLE pages CHANGE content content VARCHAR(65000) DEFAULT '' NOT NULL COLLATE utf8_unicode_ci)

screenshot_1

leopinzon commented 6 years ago

@anuzz I had the same problem in the past with an INT column. I fixed it changing the colulmn type to BIGINT directly in the database. In your case, you can change your 'content' column type to TEXT directly in your database.

Cheers!

iAnujParajuli commented 6 years ago

I tried but the validation wont let me save the big text how do i disable the validation for the form field?

Ethosteck commented 6 years ago

@anuzz You have to edit d Module, Go to Modules select the module and then set the particular field max value to 6500 and then check. I hope it helps.