adding a custom link in the dashboard
Is there any way to add a link to a custom page in the dashboard? like adding the link in dashbord.modules array in config/twill.php. Twill 3
2 Replies
TwillNavigation::addLink(
NavigationLink::make()->forRoute('ENTER_ROUTE_HERE')->title('XYZ')
);
Hi @.zeenux that would add a route to the navigation. If you want to customize the dashboard view you can override it by copying Twill's dashboard layout to
resources/views/vendor/twill/layouts/dashboard.bladd.php