Artisan::call('migrate') not working after upgrading Laravel to 4.2 Artisan::call('migrate') not working after upgrading Laravel to 4.2 symfony symfony

Artisan::call('migrate') not working after upgrading Laravel to 4.2


Yes, there is a problem actually with the last version,all previous sources are not working, should use :

Artisan::call('migrate', array('--force' => true));

Tested and working fine.


Use of undefined constant STDIN seems to be a Symfony error, see github.com/symfony/symfony/issues/10795.

A composer update should fix your problem.


I think you have to add a '-n'=>true to your call

since you are in production and a "are you sure question is fired"

so it will be like

Artisan::call('migrate',array('-n'=>true));