Created
December 24, 2018 08:59
-
-
Save densityx/03868b97414dfc5bb9d06d08c1026682 to your computer and use it in GitHub Desktop.
Dispatch job in laravel seeder after model creation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
factory(User::class, 10)->create()->each(function ($user) { | |
GenerateUserPoster::dispatch($user); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment