-
-
Notifications
You must be signed in to change notification settings - Fork 30
Open
Description
Hi,
It seems the controles like min/max or assert() are not appplyed on the default value.
This could be problematic if the default value is dynamic.
In my use case i should controle the application key is a hexa 64 chars, and by default we use the environement variable APP_KEY.
I also tryed to move the min/max/assert function after the chained ->default(), but the result is the same :(
return Expect::structure([ 'key' => Expect::xdigit()->min(64)->max(64)->default(env('APP_KEY')), ]);
Is that a bug or an "expected" behaviour ?
Keep up the good work.
Metadata
Metadata
Assignees
Labels
No labels