jeudi 31 janvier 2019

Limit Text Column Characters in Laravel 5

I have a Laravel 5 application, and I am trying to limit the length of a database TEXT column to 500.

I have it set as.

$table->text('excerpt');

How can I modify this, so that it is limited to 500 characters?



from Newest questions tagged laravel-5 - Stack Overflow http://bit.ly/2Rv4HAt
via IFTTT

Aucun commentaire:

Enregistrer un commentaire