Conditional Database Seeders #52708
Unanswered
rashidlaasri
asked this question in
Ideas
Replies: 1 comment
-
There could even be a reusable attribute like |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am currently working with multiple Database Seeder classes and some of those classes should only run locally, so, I was thinking rather than having to wrap them in an if condition, maybe we could introduce a better API/Syntax?
shouldRun
(or similar name) method to the seeder class$this->call()
Beta Was this translation helpful? Give feedback.
All reactions