1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-09-20 00:11:35 +02:00

Syntax Changes

This commit is contained in:
Jeramy Simpson 2015-03-17 15:22:44 +10:00
parent efcc92ee0e
commit eb3d9f44a2

View File

@ -84,8 +84,14 @@ class AppController extends BaseController
fclose($fp);
}
Artisan::call('migrate');
Artisan::call('db:seed');
// Laravel 5 thows an error when performing these calls
// See: https://laracasts.com/discuss/channels/general-discussion/l5-artisancall-issue
// Artisan::call('migrate');
// Artisan::call('db:seed');
// I Really don't want to do it this way but its the best I've found so far.
$process = new \Symfony\Component\Process\Process('cd ' . base_path() . ' && php artisan migrate --seed');
$process->run();
$account = $this->accountRepo->create();
$user = $account->users()->first();