lundi 5 décembre 2016

Artisan::call('db:seed') not work in production

My app is Laravel 5.1 and artisan call method work fine in local. But not work in production.

Artisan::call('db:seed', [
      '--class'   => 'ResetSeeder',
      '--force'   => true
]);

This is my code in controller. when i var_dump this code in local and production; return zero (0). But local is execute and production not_execute.

My database settings is perfect. All system methods work fine. Only Artisan::call() is not working.

NOTE: when i call "php artisan db:seed --class=ResetSeeder --force" command on console. This command work fine in console too.

Thank you so much for help me and sorry my English.



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire