Skip to content

Commit

Permalink
I receive an error here, and i realy dont find a method called paths(…
Browse files Browse the repository at this point in the history
…) in Loader

So i sugguest this vhange that fix things for me, i will check with a fresh install if it's only my problem and let you know.

https://github.com/illuminate/contracts/blob/5.5/Translation/Loader.php

Error:
```
Handler: Unexpected error occurred.Call to undefined method Illuminate\Translation\FileLoader::paths() | #0 /home/buonsito/domains/insuperadmin.buonsito.net/public_html/Modules/Translation/Services/TranslationsService.php(32): Modules\Translation\Repositories\File\FileTranslationRepository->all()
#1 /home/buonsito/domains/insuperadmin.buonsito.net/public_html/Modules/Translation/Http/Controllers/Admin/TranslationController.php(48): Modules\Translation\Services\TranslationsService->getFileAndDatabaseMergedTranslations()
AsgardCms#2 [internal function]: Modules\Translation\Http\Controllers\Admin\TranslationController->index()
```
  • Loading branch information
arturmamedov authored Jan 31, 2020
1 parent 4596ecf commit 4deb0ec
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public function __construct(Filesystem $finder, Loader $loader)
*/
public function all()
{
$files = $this->getTranslationFilenamesFromPaths($this->loader->paths());
$files = $this->getTranslationFilenamesFromPaths($this->loader->namespaces());

$translations = [];

Expand Down

0 comments on commit 4deb0ec

Please sign in to comment.