1
0
Fork 0
mirror of https://github.com/archtechx/laravel-tips.git synced 2025-12-12 13:24:03 +00:00
laravel-tips/content/tips/closure-validation-rules-are-theyre-often-better-than-creating-a-class-just-for-a-single-use.md
2021-04-06 18:27:18 +02:00

472 B

title tweet_id thread_slug author_username images created_at slug
Closure validation rules are 🔥. They're often better than creating a class just for a single use 1308085658095886336 1-rt-1-tip samuelstancl
https://pbs.twimg.com/media/EidAtSYXgAc-6tH.png
2021-04-06T16:07:41+00:00 closure-validation-rules-are-theyre-often-better-than-creating-a-class-just-for-a-single-use

Create a class if it's used on multiple places or way too complex.