Validate Digital Signatures with Laravel 5.5

By Tyler Jefford • January 15th, 2018

Paper with pen on top and a agreement label with a checkbox

Working on a project where I wanted to have our customers digitally sign a contract, but we wanted to confirm the name they input matches the name in the database. Laravel has a really nice way to do this without manually matching strings. How old school is that.

Using the Laravel Form Validations, I wanted to collect the name input and TOS agreement fields and validate they are filled to my specifications.

If the input "signature" doesn't match the auth users name, then it will fail. Its really that simple.