barryvdh / laravel-translation-manager

Manage Laravel translation files
MIT License
1.65k stars 419 forks source link

Can this package work under Laravel 10? #446

Closed cleargoal closed 6 months ago

cleargoal commented 1 year ago

I didn't know the answer, but I tried to use it with the newest Laravel.

I published migrations, config, and views by the commands you provided in readme. But I have not published either ManagerServiceProvider.php or TranslationServiceProvider.php and not the routes file. Is it the correct published result? What did I miss?

Problem: Now I can't start the translation manager at http://yourdomain.com/translations.

Please, direct me or fix this. Thank you!

maha-oueghlani commented 1 year ago

are you have a solution ?

cleargoal commented 1 year ago

No, I haven't.

vadimwe commented 1 year ago

Yes. It works as expected. Check middleware settings in trasnlation-manager config.

'route' => [
        'prefix' => 'translations',
        'middleware' => [
            'web',
            'auth',  // check if you are logged in
    ],
    ],
cleargoal commented 6 months ago

Thank you! Now it works in Laravel 11 too. So, it's solved.

cleargoal commented 6 months ago

I close it as I'm starter