Skip to content

Commit

Permalink
Fixed WithFaker
Browse files Browse the repository at this point in the history
  • Loading branch information
ThihaGenie committed Apr 28, 2022
1 parent c577fc5 commit ef314c4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions database/seeders/ProductSeeder.php
Expand Up @@ -18,6 +18,7 @@ class ProductSeeder extends Seeder
*/
public function run()
{
$this->setUpFaker();
for($i = 0; $i < 20; $i++) {
Product::createWithAttributes([
'name' => $this->faker->name(),
Expand Down
1 change: 1 addition & 0 deletions database/seeders/UserSeeder.php
Expand Up @@ -21,6 +21,7 @@ class UserSeeder extends Seeder
*/
public function run()
{
$this->setUpFaker();
User::createWithAttributes([
'name' => 'Thiha',
'email' => 'thiha@gmail.com',
Expand Down

0 comments on commit ef314c4

Please sign in to comment.