Override CRUD views

后端 未结 3 1047
悲&欢浪女
悲&欢浪女 2021-02-09 08:02

I would like to override the CRUD views of the Laravel Backpack CRUD package, because I want to make small changes to the layout. But obviously I don\'t want to change the CRUD

3条回答
  •  一个人的身影
    2021-02-09 08:42

    Before loading any views, Backpack for Laravel checks your resources/views/vendor/backpack/crud folder to see if you have any custom views. If you don't, it will just load the views in the package.

    If you want to overwrite a blade file for all CRUDS, you can just place a file with the right name in the right folder. Take a look at how the files are organized in the package.

    If you want to overwrite a blade file for just one CRUD, use Sachin's solution.

提交回复
热议问题