Closed nicolaszanghi closed 5 years ago
Add this line under the aliases array in the app.php file :
'LaravelGettext' => \Xinax\LaravelGettext\LaravelGettext::class,
If you look at the Gettext middleware, it references the Facade, so you need to register it beforehand. Let me know if that solves the problem.
Hello,
It's working well in local but when I deploy on production I got this error when adding \Xinax\LaravelGettext\Middleware\GettextMiddleware::class, to $middlewareGroups in Kernel.php laravel-gettext it's installed on the production server. I used a shared host on 1and1 (ionos)
I tried many things, but I didn't find the issue. Some one has an idea that can help me ?
Thank you