Easy PHP Validation with Violin: Database Validation (6/6)

Let’s create our own validation class and extend Violin so we can use database dependancies to create rules that interact with our database. In this video, we check if a username already exists in the database. This can be updated to check an email exists in a database, or check anything, from anywhere. Watch the full series at Violin on GitHub: Violin on Packagist:
Back to Top