admin管理员组文章数量:1301524
I have added barryvdh/laravel-translation-manager "^0.6.6" package under my existing laravel 10 app (which works under sail)
I run all steps with success, but openening url
localhost/translations/
root of my app is opened, not translation manager.
the same with url :
localhost/translations/Item
where Item
is a group in ltm_translations table
Checking routes of the app I see :
./vendor/bin/sail php artisan route:list
POST translations/add/{groupKey} ............................................................................................................................................................................. Barryvdh\TranslationManager › Controller@postAdd
POST translations/delete/{groupKey}/{translationKey} ...................................................................................................................................................... Barryvdh\TranslationManager › Controller@postDelete
POST translations/edit/{groupKey} ........................................................................................................................................................................... Barryvdh\TranslationManager › Controller@postEdit
POST translations/find ...................................................................................................................................................................................... Barryvdh\TranslationManager › Controller@postFind
POST translations/groups/add ............................................................................................................................................................................ Barryvdh\TranslationManager › Controller@postAddGroup
POST translations/import .................................................................................................................................................................................. Barryvdh\TranslationManager › Controller@postImport
POST translations/locales/add .......................................................................................................................................................................... Barryvdh\TranslationManager › Controller@postAddLocale
POST translations/locales/remove .................................................................................................................................................................... Barryvdh\TranslationManager › Controller@postRemoveLocale
POST translations/publish/{groupKey} ..................................................................................................................................................................... Barryvdh\TranslationManager › Controller@postPublish
POST translations/translate-missing ............................................................................................................................................................. Barryvdh\TranslationManager › Controller@postTranslateMissing
GET|HEAD translations/view/{groupKey?} ........................................................................................................................................................................... Barryvdh\TranslationManager › Controller@getView
GET|HEAD translations/{groupKey?} ............................................................................................................................................................................... Barryvdh\TranslationManager › Controller@getIndex
I suppose that last translations
must be triggered, but not
In routes/web.php file there are no any translations
In the file config/app.php there is a line :
'providers' => [
...
Illuminate\Translation\TranslationServiceProvider::class,
I tried to install and use package before, but removed all elements of it?
In the file config/translation-manager.php there are no any url/route option...
What can be wrong and what I need to check ?
UPDATED :
I created a new app with with laravel/breeze (I selected inertia+vuejs) and barryvdh/laravel-translation-manager, but again when logged running url
http://127.0.0.1:8000/translations
I am redirected to dashboard of the page. What is wrong ?
UPDATED # 2:
Looking at a catch-all route cuts before package routes (translations in my case) - Laravel 5.2 branch I modified config/app.php so that Barryvdh package is before RouteServiceProvider:
Illuminate\Translation\TranslationServiceProvider::class,
...
App\Providers\AppServiceProvider::class,
App\Providers\AuthServiceProvider::class,
Barryvdh\TranslationManager\ManagerServiceProvider::class,
App\Providers\RouteServiceProvider::class,
App\Providers\EventServiceProvider::class,
and running commands :
./vendor/bin/sail php artisan config:clear
./vendor/bin/sail php artisan route:clear
./vendor/bin/sail php artisan cache:clear
./vendor/bin/sail php artisan view:clear
./vendor/bin/sail php artisan clear-compiled
composer dump-autoload
But Anyway with url
localhost/translations/
My site page is opened...
What is wrong ?
本文标签: Why laraveltranslationmanager is not opened by default urlStack Overflow
版权声明:本文标题:Why laravel-translation-manager is not opened by default url? - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741668042a2391431.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论