how if charactor is exist in text in laravel code example
Example: how if charactor is exist in text in laravel
$str_contains = $request->birthDay;
if(str_contains($request->birthDay , '-')){
return 'this text contains "-" charactors';
}elseif(str_contains($request->birthDay , '/')){
return 'this text contains "/" charactors';
}