How should I effectively seed a pivot table regarding the fact that when in the seeder class PostTagTableSeeder it asks to set the path of the table's model
TestDummy::times(10)->create('App\Model');
but as pivot tables don't have models I dont know what to fill.
should I use the table's name? like
TestDummy::times(10)->create('post_tag');
from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/1JceYXG
via IFTTT
Aucun commentaire:
Enregistrer un commentaire