You can validate a field and exclude it from the validated() data
- ·
- Telegram
- ·
- Newsletter
🔥 #Laravel Tip: When you need to validate a field, but don't actually require it for anything e.g. 'accept terms and conditions', make use of the 'exclude' rule. That way, the 'validated' method won't return it...