'seed Table in Laravel using sqllite file

I am working on a Laravel project, I have records in a sqlLite file and I want to seed those records into pre-defined migrated table. How can I achieve that. Should I read the file and iterate through each value or there is a simpler way to do so?

I have tried this solution but it didn't work with me.(Use Laravel seed and sql files to populate database)

Any help?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source