I believe you'd do that in the SparkServiceProvider. Not sure if it should go in the booted() or register() method. Just make a db call to get the list and populate it as you showed.
Sep 19, 2017
3
Level 5
Dynamic Developers
The Spark Documentation states that a dynamic list can be used in place of the $developers array, but there is no hint on where to place this:
Spark::developers($developers);
I can easily retrieve a specific team's emails to pass as the parameter, but I can't figure out the placement! Thanks for your help!
Level 67
1 like
Please or to participate in this conversation.