Skip to content

Commit a8ba13e

Browse files
committed
Update readme.md
1 parent 25caa3e commit a8ba13e

File tree

1 file changed

+14
-3
lines changed

1 file changed

+14
-3
lines changed

readme.md

+14-3
Original file line numberDiff line numberDiff line change
@@ -23,22 +23,33 @@ Before you migrate keep reading...
2323

2424

2525
~~~
26+
#database/seeds/DatabaseSeeder.php
2627
/**
2728
* Used by Webhooks to prevent seed issues
2829
*/
2930
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+
~~~
3041

3142
And copy over vendors/alfred-nutile-inc/webhooks/src/CoreApp/Webhooks/database/seeds/WebhooksSeeder.php to database/seeds
3243

3344
If you want seed data place it in there. There are a couple of examples in there.
3445

3546
@TODO remove the seeder step and make it part of publish
3647

37-
~~~
38-
Right before you include your seeding class like this
39-
48+
It will end up looking like this
4049

4150
~~~
51+
#database/seeds/DatabaseSeeder.php
52+
4253
public function run()
4354
{
4455
Model::unguard();

0 commit comments

Comments
 (0)