Answers for "public function store(Request $request){$this->validate($request, ['title' = 'required|unique:recipes|max:125',]);}"

PHP
1

laravel unique validation

unique:table,column,except,idColumn

############## Example : ################

############### For Updating  
//rules
'email' => 'unique:users,email_address,' . $userId,

############### For Creating 
//rules
'email' => 'unique:users,email_address',
Posted by: Guest on October-26-2020

Code answers related to "public function store(Request $request){$this->validate($request, ['title' = 'required|unique:recipes|max:125',]);}"

Browse Popular Code Answers by Language