在 laravel 中生成动态图像路径

Generate Dynamic Image path in laravel

这是我要以 laravel 方式转换的图片标签

<img src="public/assets/uploads/driver/<?php echo $DriverDetail['DriverPhoto'];?>">

我试过

{{ HTML::image('public/assets/uploads/driver/', 'Driver Photo', array('class' => 'student-listing-photo')) }}

但是我如何在 HTML::image 标签内给出值 $DriverDetail['DriverPhoto'];

就像连接两个字符串一样简单:

{{ HTML::image('public/assets/uploads/driver/' . $DriverDetail['DriverPhoto'], 'Driver Photo', array('class' => 'student-listing-photo')) }}