You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In all honesty, I also feel this should be part of the core rules but for the main time you can use the callback rule to check for boolean values. I once used below, you can tweak it to your needs:
Activity
devhammed commentedon Apr 22, 2020
In all honesty, I also feel this should be part of the core rules but for the main time you can use the callback rule to check for boolean values. I once used below, you can tweak it to your needs:
PS: Stolen from Laravel's boolean validation rule: https://laravel.com/docs/5.8/validation#rule-boolean
zablondawit commentedon Aug 24, 2020
This should be included in the Core Rules.
devhammed commentedon Aug 24, 2020
@theZetrax I have just opened a pull request here, hopefully it would be merged ASAP.