mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Syntax Changes
This commit is contained in:
parent
efcc92ee0e
commit
eb3d9f44a2
@ -84,8 +84,14 @@ class AppController extends BaseController
|
|||||||
fclose($fp);
|
fclose($fp);
|
||||||
}
|
}
|
||||||
|
|
||||||
Artisan::call('migrate');
|
// Laravel 5 thows an error when performing these calls
|
||||||
Artisan::call('db:seed');
|
// 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();
|
$account = $this->accountRepo->create();
|
||||||
$user = $account->users()->first();
|
$user = $account->users()->first();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user