本文介绍了DB种子在FuelPHP的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我如何在FuelPHP中种子数据库像Laravel和Ruby on Rails?
FuelPHP中没有种子类吗?我必须手动插入数据库吗?
我还是找不到如何做。请告诉我是否可以这样做。
How can I seed database in FuelPHP like Laravel and Ruby on Rails?
Is there no seeder class in FuelPHP? Do I have to insert database by myself manually?I still can't find how to do. Please tell me if it was a way to do so.
推荐答案
FuelPHP目前不提供内置数据库种子。最接近的是使用迁移来编写自己的内容。
FuelPHP does not currently provide built in a way to seed databases. The closest thing is writing your own using a migration.
这篇关于DB种子在FuelPHP的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!