Repository navigation
Guided tours
Alexey Averikhin edited this page Dec 2, 2026
·
1 revision
Guided tours walk a user through a page, step by step, with GuideChimp. Each page brings its own tour, and a finished tour is remembered for each user.
Put <x-tour> in the content of the page:
<x-tour name="products" :steps="[
['element' => '.list-search', 'title' => __('views.tour.products.search.title'), 'description' => __('views.tour.products.search.description')],
['element' => '[data-export-btn]', 'title' => __('views.tour.products.export.title'), 'description' => __('views.tour.products.export.description')],
]" />and the texts to lang/en.json:
"views.tour.products.search.title": "Find products",
"views.tour.products.search.description": "Type part of a name to narrow the list."The button that starts the tour then appears in the top bar. Pages without <x-tour> show no button.
-
nameis a short lower-case word: letters, digits and dashes. - The first and the last step are the same on every page, so you write only the steps in between.
- A step whose element isn't on the page is skipped, so a tour still works when part of the page is hidden for some users.
- When a user finishes a tour, its name is stored in
users.completed_tours. A dot on the button marks a tour they haven't finished yet.
The script is resources/js/tour.js, the component resources/views/components/tour.blade.php.
Laravel Boilerplate
Project home | Laravel documentation | Labs64 NetLicensing | NetLicensing API