File tree 1 file changed +14
-3
lines changed
1 file changed +14
-3
lines changed Original file line number Diff line number Diff line change @@ -23,22 +23,33 @@ Before you migrate keep reading...
23
23
24
24
25
25
~~~
26
+ #database/seeds/DatabaseSeeder.php
26
27
/**
27
28
* Used by Webhooks to prevent seed issues
28
29
*/
29
30
Config::set('seeding', true);
31
+ ~~~
32
+
33
+ And Webhooks
34
+
35
+ ~~~
36
+ #database/seeds/DatabaseSeeder.php
37
+ Config::set('seeding', true);
38
+ $this->call('AppSeeder');
39
+ $this->call('WebhooksSeeder');
40
+ ~~~
30
41
31
42
And copy over vendors/alfred-nutile-inc/webhooks/src/CoreApp/Webhooks/database/seeds/WebhooksSeeder.php to database/seeds
32
43
33
44
If you want seed data place it in there. There are a couple of examples in there.
34
45
35
46
@TODO remove the seeder step and make it part of publish
36
47
37
- ~~~
38
- Right before you include your seeding class like this
39
-
48
+ It will end up looking like this
40
49
41
50
~~~
51
+ #database/seeds/DatabaseSeeder.php
52
+
42
53
public function run()
43
54
{
44
55
Model::unguard();
You can’t perform that action at this time.
0 commit comments