Laravel modules v7 (nWidart)

128 Views Asked by At

Whenever I create a module via the php artisan command: php artisan module:make [Name] , the trans() function that was functioning before breaks I have already searched where the break happens but I can't find it also can't find what is exactly changed after this php artisan command.

Even turning off the module via the artisan command won't fix trans() helper.

*Edit:

Okay this module Translator is overwriting the base app translator ($this->translator = $app['translator']; inside /Vendor/nWidart/Module.php), which shouldn't happen. How could I prevent this from happening? Because setting translations config settings to false won't do anything. I also tried setting the singleton translator again, but the Translator class can't be found or when I use the illuminate translator some function when configuring the new created translator.

0

There are 0 best solutions below