Good afternoon. I'm having a problem to make use of the zerofill constraint in Laravel because vi that is not in the documentation.
I have a field in my table which is a license plate and in my view I am limiting this field to 5 digits, so the maximum value it can reach is: 99999. But I would like it when the user types an unused license number all digits, spaces were filled with 0.
For example, the user reports the registration number: 450. The bank should be showing 00450.
How can I do this in Laravel?
My migration looks like this:
$table->integer('matricula')->unique();