Use the correct method name when saving a tag

This commit is contained in:
Jonny Barnes 2017-10-11 17:05:25 +01:00
parent 919a6c22ad
commit d41d085853

View file

@ -12,7 +12,7 @@ class BookmarksTableSeeder extends Seeder
public function run()
{
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());
});
}
}