laravel seed database table using another table code example Example: how to make db seeder in laravel php artisan make:seeder UsersTableSeeder