1
0
Fork 0
mirror of https://github.com/archtechx/laravel-tips.git synced 2025-12-12 21:34:03 +00:00
laravel-tips/content/tips/you-can-use-where-on-rule-instances-without-passing-a-callback.md
2021-11-05 17:13:26 +01:00

11 lines
456 B
Markdown

---
title: 'You can use ->where() on Rule instances without passing a callback'
tweet_id: '1456649614300356615'
thread_slug: weekly-thread-2021-44
author_username: jbrooksuk
images:
- 'https://pbs.twimg.com/media/FDDdhwiXEAIY4vZ.jpg'
created_at: 2021-11-05T15:48:25+00:00
slug: you-can-use-where-on-rule-instances-without-passing-a-callback
---
Did you know that you don't have to pass a function to Laravel's "where" method when using the Rule class?