Laravel 可以簡單的使用seed 類別,填充測試用的資料至資料庫。所有的seed 類別放在database/seeds ... 在 run 方法中,你可以新增任何想要的資料至你的資料庫中。
確定! 回上一頁