If I run php artisan migrate:fresh --seed --force
in console everything works as expected. The output is displayed one by one.
Dropped all tables successfully.
Migration table created successfully.
Migrating: 2014_10_12_000000_create_users_table
Migrated: 2014_10_12_000000_create_users_table
Seeding: UsersTableSeeder
etc.
If I run the artisan command from Laravel everything work fine excepting the output. It is displayed once at the end with all of the actions.
$this->info('Migrating and seeding the database...');
Artisan::call('migrate:fresh', [
'--seed' => true,
'--force' => true,
]);
$this->line(Artisan::output());
I am looking for a method to display Artisan::output() one by one for each table (the same behaviour like running the command in console).
from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2ycvUTN
via IFTTT
Aucun commentaire:
Enregistrer un commentaire