---
# System prepended metadata

title: Seeder
tags: [後端]

---

# Seeder
###### tags: `後端`

資料來源:[為你自己學 Laravel - Day 19 種子資料](https://www.youtube.com/watch?v=R32cRM1kmTk)
`php artisan make:seeder StoreSeeder` create a new seeder class
`php artisan db:seed` seed the database with seeder   (只會跑預設的seeder.php)
`php artisan db:seed --class=StoreSeeder` 多下一個class告訴她要跑哪個
