Asked by: ulmerkt
I am working with Laravel on a homestead box. I have created two files under resources>views>profile (index.blade.php & pic.blade.php).
I am having trouble making the link for the image work across both files
<img src="{{url('../')}}/public/img/{{Auth::user()->pic}}" width="100px" height="100px" /><br>
<img src="{{url('../')}}/img/{{Auth::user()->pic}}" width="100px" height="100px" /><br>
each of these work but one will only display the image for one page at a time. I'm sure it has something to do with the path and the homestead environment, but not really sure.
No comments:
Post a Comment