Cool, yeah it seems that the custom validation works the same way as here:
class Uppercase implements Rule
{
/**
* Determine if the validation rule passes.
*
* @param string $attribute
* @param mixed $value
* @return bool
*/
public function passes($attribute, $value)
{
return strtoupper($value) === $value;
}
/**
* Get the validation error message.
*
* @return string
*/
public function message()
{
return 'The :attribute must be uppercase.';
}
}
This is basically the same concept as with dotnet core.
Cool, yeah it seems that the custom validation works the same way as here:
This is basically the same concept as with dotnet core.
Hum cool, can you send me an example more complete ?
Actually, IAM trying to learn more about dotnet core to start doing microservices...