Here is my regular code in the blade
<a href="<?php echo url();?>/blog/<?php echo $Blog->id;?>">{{ $Blog->BlogTitle }}</a>
I want to do something like
{{ HTML::link('http://test.com', null, array('id' => 'linkid'))}}
I mean i want to do it in the laravel way..
How can i do this ?
试试下面的代码
{{ HTML::link(url().'/blog'.$Blog->id, $Blog->BlogTitle)}}
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.