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

Popular posts from this blog

How to mention the localhost in android -

php - Calling a template part from a post -

c# - String.format() DateTime With Arabic culture -