public function __construct(Request $request) { AppOptionHelper::load(); $this->localeCode = currentLocaleCode(); $this->is_auth = isAuth(); $this->auth_user = authUser(); if ($this->is_auth) { $own_directory = $this->auth_user->ownDirectory; config(['katniss.disks.' . $own_directory => ['driver' => 'local', 'root' => storage_path('../public/upload/file_manager/users/' . $own_directory)]]); } }
function getOption($key, $default = '') { return AppOptionHelper::get($key, $default); }