-
-
Notifications
You must be signed in to change notification settings - Fork 974
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Public image not showing Laravel 10 #1058
Comments
I am facing the same issue but with Laravel 11.x.x |
did you try with Also #1059 (comment) |
I'm facing the same issue in Laravel 11.x :-( |
Can confirm. Tried it with helper methods like I just get this screen. Nasty HackWhat actually works and it's a workaround for me: Just encode your file in base64 ;)
|
Hm actually, got to apologize: Made it work with @matiassemelman did you try it without the leading In my example:
it does work but in your scenario the output would be something like: the dot actually ruins the path |
Laravel 11.x I was able to fix the problem with:
inside my controller and passed the $image vairiable down to the view which allowed me to used it inside my Check my Controller here: |
bro, you saved my live, i was figuring this problem for days |
Hello there, I'm using Laravel 10.10, and package 2.1.
I have my logo on public/ folder, just there.
This is my function:
private function generateLogo()
{
return "<img src='{{public_path('./pathful-logo') }}' alt='pathful-logo' class='logo' />";
}
I used public_path(), base_path(), with and without {{ }}.
The text was updated successfully, but these errors were encountered: