Customize admin area
-
Hello,
What's the best way to customize admin area core pages? How can I add / remove some columns or search form from products list page?
-
Hi @symbolica,
It depends on the taste, how you want to be it. But if the talk is about the admin area I am assuming that you are familiar with packages as well.
If anything you want to changes in the view of the admin then you need to check the resources folder of the admin package i.e.
packages/Webkul/Admin/src/Resources
.For a listing, we use data grids, and for changes in the product list you need to check the product Datagrid class i.e.
packages/Webkul/Admin/src/DataGrids/ProductDataGrid.php
. -
How can i edit sidebar menus?
-
Hi @hedyd,
You can check on this path,
packages/Webkul/Admin/src/Resources/views/layouts/nav-left.blade.php
But make sure to override this path in your
resources
folder because this path is for the packages folder and I have shared it only for reference.You can check this doc to override the package view,
https://laravel.com/docs/8.x/packages#overriding-package-views -
Also one more thing, every time I do changes in the menu, I need to run
php artisan config:cache
command. Is it necessary to do say, or is there any other way?
-
Yes because configs are cached.