Commit 75cc93ce by Aan Choesni Herlingga

tes artisan call

parent 4cd7bb46
......@@ -34,12 +34,15 @@ class UpdateController extends Controller
$line = 'Whoops something when wrong!! Check your username and password';
}
$command = 'cd .. && php artisan migrate';
exec($command, $resultMigrate);
Artisan::call('migrate',
array('--force' => true));
foreach ($resultMigrate as $lineMigration) {
$lines = $lines.$lineMigration.'<br>';
}
// $command = 'cd .. && php artisan migrate';
// exec($command, $resultMigrate);
// foreach ($resultMigrate as $lineMigration) {
// $lines = $lines.$lineMigration.'<br>';
// }
}
$data = [
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment