Did I miss a part in the install?
I did composer install, npm install and migrated DB. Site appears to be fully up and running. Minus images.
However I went to use the menu builder and itโs making no change to the site, nor when I add pictures in the voyager admin themes are they loaded. They do end up in a themes file tho.
The header.blade calls for the authenticated.blade which is static view. I donโt see where the menu from menu builder is stored or its view.
I can call the menu from menu builder in my header and build my own view but Iโm feeling like that should have worked out of the box so Iโve made an error somewhere.
Since Iโm new to this, and was porting over an existing project I had been building from scratch. I did install Vite when I started.
I will install Wave again without Vite in a new app and see if the error still occurs. But thought Iโd post here for some insight.
Hi there ๐
For the missing images, you need to make sure that you've defined the APP_URL
env variable in your .env file to match your domain name exactly, including the http://
or https://
part.
For the menu builder, note that this only works for the admin Voyager menu and not the frontend menu, you can edit the frontend menu directly via your blade files.
Let me know if you have any other questions!
- Bobby
Hey!
Happy to hear that the APP_URL was causing the issue!
Let me know if anything else pops up.
Indeed, the admin menu is also in the menu builder of voyager. There is also an authenticated and guest version of the page header menu. Which directory is the header theme view for the menu builder using? C:\Projects\D486WEBSITE\resources\views\themes\tailwind\menus is static and does not update with the page menus in menu builder.
There is no theme style attached to the menu. So I have built my own blade view and pointed to it. But I would imagine this theme should be somewhere? I can change menu items from menu builder in this way. It is the view I'm not understanding.
And is it correct that all menu changes must be done in menu builder. Adding via a blade file would update the page menu but not the menu builder version.
tailwind/menus/header.blade.php
<!-- This is the homepage nav when a user is not logged in -->
@if(auth()->guest())
@include('theme::menus.guest')
@else <!-- Otherwise we want to show the menu for the logged in user -->
{!! menu('authenticated-menu', 'themes.tailwind.menus.authenticated_builder') !!}
@endif
</div>
</div>
@if(auth()->guest())
@include('theme::menus.guest-mobile')
@else
@include('theme::menus.authenticated-mobile')
@endif
Hey!
With the current version of Wave the menu builder is not related in any way with the menus on the frontend. The menu builder is only used in the Voyager admin.
You can find the frontend manus here which are essently just blade views and not related to the Voyager admin directly in any way:
To modify the menu on the frontend just update the blade files in that menus directory.
You could try implementing the menus on the frontend by following the steps here:
https://voyager-docs.devdojo.com/core-concepts/menus-and-menu-builder
Hope that this helps.
- Bobby