You can validate a field and exclude it from the validated() data

You can validate a field and exclude it from the validated() data

🔥 #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...

We're writing a book, you can get it for free here.