Commit 75cc93ce by Aan Choesni Herlingga

tes artisan call

parent 4cd7bb46
...@@ -34,12 +34,15 @@ class UpdateController extends Controller ...@@ -34,12 +34,15 @@ class UpdateController extends Controller
$line = 'Whoops something when wrong!! Check your username and password'; $line = 'Whoops something when wrong!! Check your username and password';
} }
$command = 'cd .. && php artisan migrate'; Artisan::call('migrate',
exec($command, $resultMigrate); array('--force' => true));
foreach ($resultMigrate as $lineMigration) { // $command = 'cd .. && php artisan migrate';
$lines = $lines.$lineMigration.'<br>'; // exec($command, $resultMigrate);
}
// foreach ($resultMigrate as $lineMigration) {
// $lines = $lines.$lineMigration.'<br>';
// }
} }
$data = [ $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