Skip to content
Advertisement

Insert an array using seeders with laravel

Hi I want to insert this array using seeders into Laravel framework:

JavaScript

I read that I can do it this way:

JavaScript

But I want to insert these countries in the column name of my table:

JavaScript

I don’t want to do it manually, I want to insert the array of above completely.

Thank you so much.

Advertisement

Answer

Try this solution

JavaScript
User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement