Skip to content

Commit d1ada10

Browse files
bredeclgfazioli
authored andcommitted
small typo fix for the example of seeding. without the semi-colon the code produces an error.
1 parent 28de3e7 commit d1ada10

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

pages/docs/DatabaseORM/seeding.mdx

+4-4
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ return new class extends Seeder {
8686
VALUES
8787
(1,'','Mauritania','MR','Mauritanian Ouguiya','','','MRO',0.00,'africa','publish')");
8888
}
89-
}
89+
};
9090
```
9191

9292
## WordPress prefix
@@ -130,7 +130,7 @@ return new class extends Seeder {
130130
VALUES
131131
(1,'','Mauritania','MR','Mauritanian Ouguiya','','','MRO',0.00,'africa','publish')");
132132
}
133-
}
133+
};
134134
```
135135

136136
In this case the table name will be `my_plugin_products`.
@@ -169,7 +169,7 @@ return new class extends Seeder {
169169
]
170170
);
171171
}
172-
}
172+
};
173173
```
174174
### Remove the WordPress prefix
175175

@@ -208,7 +208,7 @@ return new class extends Seeder {
208208
]
209209
);
210210
}
211-
}
211+
};
212212
```
213213

214214
In the Model class, you have to set to false the second parameter of the `DB::getTableName` method.

0 commit comments

Comments
 (0)