Instantly share code, notes, and snippets.

Embed
What would you like to do?
Laravel Username Validation
<?php
// Running validation
$this->validate($request, [
'user_id' => 'required|integer|unique:users,user_id'
]);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment