jeudi 31 janvier 2019

Laravel 5 - Limit text column characters

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 it is limited to 500 characters?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire