mirror of
https://github.com/snipe/snipe-it.git
synced 2024-11-11 08:04:09 -08:00
Merge branch 'develop'
This commit is contained in:
commit
5edf9e143f
|
@ -39,8 +39,8 @@ class DashboardController extends Controller
|
||||||
$counts['grand_total'] = $counts['asset'] + $counts['accessory'] + $counts['license'] + $counts['consumable'];
|
$counts['grand_total'] = $counts['asset'] + $counts['accessory'] + $counts['license'] + $counts['consumable'];
|
||||||
|
|
||||||
if ((!file_exists(storage_path().'/oauth-private.key')) || (!file_exists(storage_path().'/oauth-public.key'))) {
|
if ((!file_exists(storage_path().'/oauth-private.key')) || (!file_exists(storage_path().'/oauth-public.key'))) {
|
||||||
\Artisan::call('passport:install');
|
|
||||||
\Artisan::call('migrate', ['--force' => true]);
|
\Artisan::call('migrate', ['--force' => true]);
|
||||||
|
\Artisan::call('passport:install');
|
||||||
}
|
}
|
||||||
|
|
||||||
return view('dashboard')->with('asset_stats', $asset_stats)->with('counts', $counts);
|
return view('dashboard')->with('asset_stats', $asset_stats)->with('counts', $counts);
|
||||||
|
|
|
@ -263,8 +263,8 @@ class SettingsController extends Controller
|
||||||
$output = Artisan::output();
|
$output = Artisan::output();
|
||||||
|
|
||||||
if ((!file_exists(storage_path().'/oauth-private.key')) || (!file_exists(storage_path().'/oauth-public.key'))) {
|
if ((!file_exists(storage_path().'/oauth-private.key')) || (!file_exists(storage_path().'/oauth-public.key'))) {
|
||||||
Artisan::call('passport:install');
|
|
||||||
Artisan::call('migrate', ['--force' => true]);
|
Artisan::call('migrate', ['--force' => true]);
|
||||||
|
Artisan::call('passport:install');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue