db seeds from a package Laravel 4

144 views Asked by At

I am developing a package for an application with Laravel 4, I added some seeders into the folder seeds of folder database of my application, what is the right command line to run the seeder ?

I tried some similar commands to db:migrate to run these seeders like:

 php artisan db:seed --package=Packagename/PackageDirectory

but it seems they are not working here, what is the right command line to run these seeders insdie the package from root of application?

1

There are 1 answers

0
Jerodev On

According to the documentation, the only available option for this function is --class.

What you can do is create a class that gets data from your package.