public function controllerName(Request $request, $id) { $this->validate($request, [ "form_field_name" => 'required|unique:db_table_name,db_table_column_name,'.$id ]); // the rest code }