When adding user to voyager, its default avatar is broken.
Steps to reproduce the behavior:
php artisan make:auth[email protected]php artisan voyager:admin [email protected]/admin with the user logged in/storage/users/default.png does not existA default avatar picture should appear
I don't know if it's important but I'm using homestead as my web server.
Can you verify whether the file exists at /storage/app/public/users/default.png?
If so, what about /public/storage/users/default.png?
None of them exists.
The default user icons are only installed during the voyager:install --with-dummy command.
Did you change de .env file? I've got a similar issue, I wasn't using the Homestead though. I had to change the APP_URL=localhost to APP_URL=127.0.0.1:8000 like the docs says.
I experienced the same issue but you better pick an other default avatar on internet or do your own 馃槃
Yeah we really should have a default avatar set even when not using --with-dummy.
Maybe use Gravatar as default?
Gravatar is the devil 馃槤
(@fbnlsr This is only a personal appreciation. I just don't like the fact that you share the same image everywhere. I prefer to setup my avatar from case to case...)
Why's that?
Change the APP_URL in .env file
APP_URL=http://voyager.test
@slckym that is just wrong.
The image just doesn't exist, and changing the app-url to voyager.test will break everything (at least for him)
I did change the URL in the .env file when I first set up my app.
I believe this is a problem related to Voyager, not my config.
Without installing with dummy data, you can manually set the path to your own default user icon in config/voyager.php
https://github.com/the-control-group/voyager/blob/1.1/publishable/config/voyager.php#L21
@fbnlsr, in Laravel any file inside storage/app/public folder is considered as dummy files. take a look at .gitignore in the mentioned path.
So, to me they are not considered as my project main files and it seems reasonable to not create that file with default voyager installation.
I hear what you are both saying. But I believe Voyager should provide a default avatar picture when creating users without using the --with-dummy flag. If not, what's the point of providing a whole set of icons as well? To me that's an issue that needs to be solved.
Agreed, and Voyager used to. It was accidentally moved, not intentionally
Change the APP_URL in .env file
APP_URL=http://voyager.test
solve my problem. i wonder why other people dont get this issue. haha thanks alot
Change the APP_URL in .env file
APP_URL=http://voyager.test
THAAAANK YOU DUD!
This issue has been automatically locked since there has not been any recent activity after it was closed. If you have further questions please ask in our Slack group.
Most helpful comment
I hear what you are both saying. But I believe Voyager should provide a default avatar picture when creating users without using the
--with-dummyflag. If not, what's the point of providing a whole set of icons as well? To me that's an issue that needs to be solved.