src/Manager.php
public function removeKey($fileName, $key)
    {
        foreach ($this->languages() as $language) {
            $filePath = $this->path."/{$language}/{$fileName}.php";

            $fileContent = $this->getFileContent($filePath);

            Arr::forget($fileContent, $key);

            $this->writeFile($filePath, $fileContent);
        }
    }
public function removeKey($fileName, $key)
    {
        foreach ($this->languages() as $language) {
            $filePath = $this->path."/{$language}/{$fileName}.php";

            $fileContent = $this->getFileContent($filePath);

            Arr::forget($fileContent, $key);

            $this->writeFile($filePath, $fileContent);
        }
    }
public function removeKey ( $ fileName , $ key ) { foreach ( $ this -> languages ( ) as $ language ) { $ filePath = $ this -> path . "/{$language}/{$fileName}.php" ; $ fileContent = $ this -> getFileContent ( $ filePath ) ; Arr :: forget ( $ fileContent , $ key ) ; $ this -> writeFile ( $ filePath , $ fileContent ) ; } }
Remove a key from all language files.

@param string $fileName
@param string $key
@return void
Remove a key from all language files .