Bagisto Forum

    Bagisto

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

    Overide admin view using custom package?

    General Discussion
    5
    8
    1168
    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.
    • K
      karkiswapnil last edited by

      Is it possible to override the views in admin, by a view file in custom package?
      Dont know if its wierd but what i want to achieve is that when i add my custom package to any bagisto project some views on core packages also needs to be override.

      1 Reply Last reply Reply Quote 0
      • R
        rahul last edited by

        Hi @karkiswapnil

        Yes. You can override any of view file.

        You can read this one - https://forums.bagisto.com/topic/221/how-to-override-view-file-in-bagisto

        So you need to create a view file (In your package & follow same path structure as core 's view file consist ) & publish this file according to path of that suggested in above topic or core's view file has, in your package's service provider. Like

          $this->publishes([
                    __DIR__ . 'folder1/folder2/filename' => resource_path('views/vendor/shop/folder1/folder2/filename'),
                ]);
        

        Thanks

        C 1 Reply Last reply Reply Quote 1
        • K
          karkiswapnil last edited by

          Thanks ill try this.

          1 Reply Last reply Reply Quote 0
          • K
            karkiswapnil last edited by

            hey can you give me an example? Replace folder1/folder2 with actual folder names. Thank you

            1 Reply Last reply Reply Quote 0
            • R
              rahul last edited by

              Hi @karkiswapnil

              You can see this one -

               $this->publishes([
                          __DIR__ . '/../Resources/views/admin/catalog/products/edit.blade.php' => resource_path('views/vendor/admin/catalog/products/edit.blade.php'),
                      ]);
              

              We are overriding product's edit file.

              Thanks

              1 Reply Last reply Reply Quote 0
              • C
                cruickshank @rahul last edited by

                @rahul said in Overide admin view using custom package?:

                Hi @karkiswapnil

                Yes. You can override any of view file.

                You can read this one - https://forums.bagisto.com/topic/221/how-to-override-view-file-in-bagisto cookie clicker

                So you need to create a view file (In your package & follow same path structure as core 's view file consist ) & publish this file according to path of that suggested in above topic or core's view file has, in your package's service provider. Like

                  $this->publishes([
                            __DIR__ . 'folder1/folder2/filename' => resource_path('views/vendor/shop/folder1/folder2/filename'),
                        ]);
                

                Thanks

                I greatly appreciate your response. It has great value.

                1 Reply Last reply Reply Quote 0
                • admin
                  admin last edited by

                  Hi there,
                  Thanks for the update
                  Also if you like our support, you may give us the review here:- https://www.trustpilot.com/review/bagisto.com
                  That would be grateful for us.

                  1 Reply Last reply Reply Quote 0
                  • E
                    emmaclerk last edited by

                    This post is deleted!
                    1 Reply Last reply Reply Quote 0
                    • First post
                      Last post