PLATFORM
  • Tails

    Create websites with TailwindCSS

  • Blocks

    Design blocks for your website

  • Wave

    Start building the next great SAAS

  • Pines

    Alpine & Tailwind UI Library

  • Auth

    Plug'n Play Authentication for Laravel

  • Designer comingsoon

    Create website designs with AI

  • DevBlog comingsoon

    Blog platform for developers

  • Static

    Build a simple static website

  • SaaS Adventure

    21-day program to build a SAAS

Question By
Solved

Issues changing default avatar

Solved
kaprinkey1

Sep 8th, 2023 12:54 PM

Hey Bobby or whomever answers this,

Sorry to keep bothering y'all but I ran into another issue. I am attempting to change the default avatar image to my own images and it won't work for some reason and I have not been able to determine why the site when calling the image adds this url which is clearly wrong lol.

Url it provides when inspecting the webpage

This is the proper URL

Notice it uses /storage twice in the first link? Below is my code from config/voyager.php

        'add_default_role_on_register' => true,
        'default_role'                 => 'trial',
        'namespace'                    => \App\Models\User::class,
        'default_avatar'               => 'themes\Shop4CharitiesLogo\Wordpress.png',
    ],

Not only that but my favicon only works on certain pages? I added the code snippet you gave me and it does work but not for the storage urls above, is that normal?

kaprinkey1

Sep 8th, 2023 01:11 PM

Nevermind, I just fixed it lol. Sorry to bother you unnecessarily. My issue was that I was incorrectly calling the file and adding too many forward slashes.

kaprinkey1

Sep 8th, 2023 01:14 PM

I do have another question though that you could probably answer for me.

If I remove the default user from voyager, this will not cause issues will it? I created my own users and wanted to make sure before I remove it.

kaprinkey1

Sep 8th, 2023 01:21 PM

I found another issue that is probably a direct result of me altering the default files. Long story short, the favicon seems to work on all pages except No favicon on this page.

I am not yet done with this page as the images are not equal size nor are all the categories added, but, it does not have a favicon either No favicon on this page, but if you browse to any of the empty category pages it does use the favicon lol.

I am not sure what I am doing wrong on that aspect? I was able to fix the favicon issues for the rest of the site but for some reason those pages do not call it and yes I am using @extends('theme::layouts.app')

kaprinkey1

Sep 12th, 2023 01:19 PM

Nvm the favicon works now. It could have been cached somewhere.

bobbyiliev

Sep 18th, 2023 05:47 AM

Best Answer

Hey! No problem, happy to hear that it is all working now!