Bagisto Forum

    Bagisto

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups

    How to overide the admin package controller

    Modules
    3
    6
    436
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • S
      Sergej last edited by

      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.
      2020-11-17_10h32_30.png

      1 Reply Last reply Reply Quote 0
      • D
        deepak227 last edited by

        @Sergej

        for multi-local please go through the admin/locales in admin panel

        1 Reply Last reply Reply Quote 0
        • S
          Sergej last edited by

          Thanks.
          But Admin/Locale is the set of the shop page multi local setting.
          I want to add language select in Admin panel...

          1 Reply Last reply Reply Quote 0
          • D
            deepak227 last edited by

            @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 - Turkish

            For 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

            1 Reply Last reply Reply Quote 0
            • S
              Sergej last edited by

              @deepak227
              Thanks.
              But I want to add select dropdown box to select language in admin panel.

              1 Reply Last reply Reply Quote 0
              • V
                Vaishali Agarwal last edited by

                @Sergej
                Recently this functionality is already added to bagisto master branch.
                Please check this PR for updates https://github.com/bagisto/bagisto/commit/dfccdc34637cbd72900cf7a057f6b981917e081f

                1 Reply Last reply Reply Quote 0
                • First post
                  Last post