db:seed
php mitosis db:seed --file=demo.php
--file is relative to database/seeds/, unless it starts with /
(an absolute path). The seed file itself returns a callable, invoked with no arguments:
<?php
return function () {
// insert your seed data here, e.g. via DB::insert()
};
✓ Seeded: demo.php
No --file given:
✗ Usage: db:seed --file=<path>
Thin wrapper over Migration::runSeed().
Next steps
- db:execute — running a raw
.sqlfile instead of a PHP seed.