• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Register
  • Login
Bagisto Forum

Bagisto

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

Claryfing overriding from custom package as opposed to laravel default folders.

General Discussion
2
3
351
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.
  • N
    nessuno last edited by nessuno 15 Nov 2020, 17:02 15 Nov 2020, 13:48

    Hi Bagisto Experts , thanks in advance for Bagisto and your time, my question: can I override anything and everything from my custom package without ever using laravel default folders or some overriding requires it to be via the default laravel folders and not doable from a custom package ? I am new to bagisto and I wish to build on top of it and I am trying to understand the best way to keep customisations after bagisto updates. Hence, can I always override from my custom package or in some cases I must do it via the laravel default folders ( like views and layouts ? ). Thanks in advance for your time and help ! Sergio

    For example, if I wanted to override
    /var/www/html/bagisto/packages/Webkul/Admin/src/Resources/views/dashboard/index.blade.php

    From various forum answers, I'd have to go to
    /var/www/html/bagisto/resources/views/vendor and re-create the view under this path.

    Is that correct ? I've tried multiple combinations, please could someone point me in the right direction or share what the end path would look like ? Thank you for your kind help.

    ps: Please, is there a code example anywhere ? I've followed 3 or 4 questions but it is still not clear, any help is greatly appreciated, txs!

    1 Reply Last reply Reply Quote 0
    • N
      nessuno last edited by nessuno 15 Nov 2020, 18:31 15 Nov 2020, 17:21

      I've managed overriding by placing it in /var/www/html/bagisto/resources/views/vendor/admin/layouts/master.blade.php

      But would it be possible to do it from my own package instead ?
      (ex: this->publish from CustomServiceProvider ? )

      thanks for any help.

      1 Reply Last reply Reply Quote 0
      • devansh-webkul
        devansh-webkul last edited by 17 Nov 2020, 05:56

        Hi @nessuno,

        Please check here,
        https://forums.bagisto.com/topic/1971/override-index-blade-php-example/3.

        Please follow one thread for better communication.

        1 Reply Last reply Reply Quote 0
        2 out of 3
        • First post
          2/3
          Last post