Laravel Blade html image

后端 未结 8 1457
旧巷少年郎
旧巷少年郎 2020-12-18 18:33

My image file path is public/img/logo.png and
my app.blade.php file path is resources/views/app.blade.php

Inside of my app.blade.php fi

相关标签:
8条回答
  • 2020-12-18 19:22

    Change /img/stuvi-logo.png to img/stuvi-logo.png

    {{ HTML::image('img/stuvi-logo.png', 'alt text', array('class' => 'css-class')) }}
    

    Which produces the following HTML.

    <img src="http://your.url/img/stuvi-logo.png" class="css-class" alt="alt text">
    
    0 讨论(0)
  • 2020-12-18 19:22

    in my case this worked perfectly

    <img  style="border-radius: 50%;height: 50px;width: 80px;"  src="<?php echo asset("storage/TeacherImages/{$studydata->teacher->profilePic}")?>">
    

    this code is used to display image from folder

    0 讨论(0)
提交回复
热议问题