Use the correct method name when saving a tag
This commit is contained in:
parent
919a6c22ad
commit
d41d085853
1 changed files with 1 additions and 1 deletions
|
@ -12,7 +12,7 @@ class BookmarksTableSeeder extends Seeder
|
||||||
public function run()
|
public function run()
|
||||||
{
|
{
|
||||||
factory(App\Bookmark::class, 10)->create()->each(function ($bookmark) {
|
factory(App\Bookmark::class, 10)->create()->each(function ($bookmark) {
|
||||||
$bookmark->tag()->save(factory(App\Tag::class)->make());
|
$bookmark->tags()->save(factory(App\Tag::class)->make());
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue