laravel - Seeding database with path from code? -
i've been using laravel's migrations path parameter so:
artisan::call('migrate', array('--path' => 'path/to/my/migrations'));
is there anyway can run seed command in same way? have number of seed files want use don't want run them @ same time.
any advice appreciated.
thanks
instead of --path can set --class namespace seeder class.
artisan::call('db:seed', [ '--class' => 'namespace\seeds\databaseseeder' ]);
this work on laravel 5.1
Comments
Post a Comment