Did I miss a part in the install?

Solved
scraghty ใƒป

Aug 26th, 2024 08:03 AM

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.

bobbyiliev ใƒป

Aug 26th, 2024 08:15 AM

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

scraghty ใƒป

Aug 29th, 2024 12:08 PM

thank you for the response! Whoops found the error in the APP_URL Thank you!! I haven't had a chance to look into the menu thing yet. Ill post again and mark accepted.

bobbyiliev ใƒป

Aug 30th, 2024 01:05 AM

Hey!

Happy to hear that the APP_URL was causing the issue!

Let me know if anything else pops up.

scraghty ใƒป

Aug 30th, 2024 08:14 PM

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
bobbyiliev ใƒป

Aug 31st, 2024 02:26 AM

ใƒป

Best Answer

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:

/resources/views/themes/tailwind/menus

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