How to overide the admin package controller
-
Hello, Bagisto team.
I am using bagisto and want to add multi local in admin panel like super-admin.
I don't want to change Admin package core code because of updating problem...
I can't know how to add it...
I have already found that there isn't Locale middle ware in the Admin package, so I want to add middleware and change the code of AdminServiceProvider.php...
How can I do this?
This is the Image that I want.
-
for multi-local please go through the admin/locales in admin panel
-
Thanks.
But Admin/Locale is the set of the shop page multi local setting.
I want to add language select in Admin panel... -
@Sergej said in How to overide the admin package controller:
I want to add language select in Admin panel...
For Admin Panel Language Bagisto Support
ar - Arabic
de - German
en - English
es - Spanish
fa - Faris
it - Italy
nl - Dutch
pl - Polish
pt_BR - Portuguese
tr - TurkishFor this you have to go to .env file there is a file of APP_LOCALE change this APP_LOCALE to your country code and then run php artisan config:cache
Hope this will work for you.
Thank you
-
@deepak227
Thanks.
But I want to add select dropdown box to select language in admin panel. -
@Sergej
Recently this functionality is already added to bagisto master branch.
Please check this PR for updates https://github.com/bagisto/bagisto/commit/dfccdc34637cbd72900cf7a057f6b981917e081f