Answers for "validation rule if row exist laravel"

PHP
0

validation rule if row exist laravel

//update request 
return [
	'username' => 'unique:users,username,' . $this->route('internalUser')->id . ',id',
];

//create request
return [
	'username' => 'unique:users'
];
Posted by: Guest on November-07-2020

Code answers related to "validation rule if row exist laravel"

Browse Popular Code Answers by Language