How to seed pivot table in Laravel 5.4?
问题 I am following a tutorial called Incremental API in laracasts by Jeffrey Way. There is a different coding between Laravel 4 faker class seeding and laravel 5.4. I still followed the same code lines from the tutorials "Seeders Reloaded". Now, I am stuck with "Class LessonTagTableSeeder does not exist" TagTableSeeder class TagsTableSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { $faker = Faker::create('App\Tag'); for($i=1; $i <= 10; $i++) { DB: