If I have a custom rule class (MyCustomRule) implementing Illuminate\Contracts\Validation\Rule, is there a quick way to register an alias for the rule so that I can call it as a string? e.g.
public function rules()
{
return [
'email' => 'required|my_custom_rule'
];
}
I don't want to repeat myself in the AppServiceProvider.