对于照片页面,我试图在目录中显示所有照片。我有一个带有fancybox的页面效果很好但是在另一个页面上,我使用foreach循环它不能在fancybox中打开但只是在浏览器中打开它。
@foreach($images as $image)
<article class="portfolio-item isotope-item isotope-design wow flipInY" data-wow-duration="1.5s" data-wow-delay="0.25s">
<div class="portfolio-item-container">
<div class="portfolio-item-media">
<a href="{{asset($image)}}" title="{{basename($image)}}"
class="overlay-hover-2x scale-hover" data-gfort-lightbox>
<img style="height: 260px;" src="{{asset($image)}}" alt="Article Image"/>
</a>
</div>
</div>
</article>
@endforeach
我想知道如何解决这个问题。我认为它与href
有关,但我不能指责它。
提前感谢任何帮助
图像的dd
-relativePath: ""
-relativePathname: "Breda 1.jpg"
path: "images\fotos\Breda"
filename: "Breda 1.jpg"
basename: "Breda 1.jpg"
pathname: "images\fotos\Breda\Breda 1.jpg"
extension: "jpg"
realPath: "C:\xampp\htdocs\MRensen\blog\public\images\fotos\Breda\Breda 1.jpg"
aTime: 2017-11-13 22:24:08
mTime: 2017-11-13 22:24:08
cTime: 2017-11-13 22:24:08
inode: 0
size: 2876361
perms: 0100666
owner: 0
group: 0
type: "file"
writable: true
readable: true
executable: false
file: true
dir: false
link: false
linkTarget: "C:\xampp\htdocs\MRensen\blog\public\images\fotos\Breda\Breda 1.jpg"