Possible fix for #3852

This commit is contained in:
snipe 2017-08-22 22:46:02 -07:00
parent 57f4c986af
commit f119c69698

View file

@ -259,6 +259,13 @@ class SettingsController extends Controller
Artisan::call('migrate', ['--force' => true]);
$output = Artisan::output();
if ((!file_exists(storage_path().'/oauth-private.key')) || (!file_exists(storage_path().'/oauth-public.key'))) {
Artisan::call('passport:install');
Artisan::call('migrate', ['--force' => true]);
}
return view('setup/migrate')
->with('output', $output)
->with('step', 2)