fixed console #785

This commit is contained in:
denisdulici 2019-03-09 19:31:03 +03:00
parent f566e43e75
commit 17bb80eadb
3 changed files with 6 additions and 3 deletions

View File

@ -58,6 +58,9 @@ class Overrider
//Session::put('locale', setting('general.default_language'));
config(['app.locale' => setting('general.default_locale')]);
}
// Set app url dynamically
config(['app.url' => url('/')]);
}
protected static function loadCurrencies()

View File

@ -94,7 +94,7 @@ return [
'chartjs' => [
'scripts' => [
asset('public/js/chartjs/Chart.min.js'),
app()->runningInConsole() ? '' : asset('public/js/chartjs/Chart.min.js'),
],
],

View File

@ -51,14 +51,14 @@ return [
'public' => [
'driver' => 'local',
'root' => storage_path('app/public'),
'url' => url('/') . '/storage',
'url' => app()->runningInConsole() ? '' : url('/') . '/storage',
'visibility' => 'public',
],
'uploads' => [
'driver' => 'local',
'root' => storage_path('app/uploads'),
'url' => url('/') . '/uploads',
'url' => app()->runningInConsole() ? '' : url('/') . '/uploads',
'visibility' => 'private',
],