mirror of
https://github.com/archtechx/laravel-tips.git
synced 2025-12-12 21:34:03 +00:00
11 lines
No EOL
545 B
Markdown
11 lines
No EOL
545 B
Markdown
---
|
|
title: 'This pattern is brilliant and can make your code much more clean and consistent'
|
|
tweet_id: '1468596267458588676'
|
|
thread_slug: weekly-thread-2021-49
|
|
author_username: LiamHammett
|
|
images:
|
|
- 'https://pbs.twimg.com/media/EX1RMP1X0AApuv6.jpg'
|
|
created_at: 2021-12-08T15:00:10+00:00
|
|
slug: this-pattern-is-brilliant-and-can-make-your-code-much-more-clean-and-consistent
|
|
---
|
|
🔥 I often find myself keeping validation rules in a method on the model. This lets me reuse them wherever I may need - including in controllers or form requests. |