mirror of
https://github.com/archtechx/laravel-tips.git
synced 2025-12-12 05:14:04 +00:00
569 B
569 B
| title | tweet_id | thread_slug | author_username | images | created_at | slug | |
|---|---|---|---|---|---|---|---|
| You can validate a field and exclude it from the validated() data | 1520040281818550274 | weekly-thread-2022-17 | mattkingshott |
|
2022-04-29T14:00:18+00:00 | 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...