public function storeLocale() { $storeDriver = $this->config->getStoreDriver(); $key = $this->config->getDefaultKey(); if ($this->locale !== null && !empty($storeDriver)) { $storeDriver = $this->app->make($storeDriver); if ($storeDriver instanceof BaseDriver) { $storeDriver->store($key, $this->locale); return $this->locale; } } }