Alpha-Dash-Dot
Ensures the field is an alpha-numeric string, allowing dashes, underscores and dots (.
). This rule is an extended version of Laravel's alpha_dash
rule.
use Aedart\Validation\Rules\AlphaDashDot;
$data = $request->validate([
'slug' => [ new AlphaDashDot() ],
]);