我有数据库结构是怎样的书&下载链接..如何把URL里面laravel刀片
$book= new Book();
$book->name = $request->Input(['name']);
$book->download_link = $request->Input(['download_link']); // eg. https://bnbooks.com/1234
$book->save();
现在
,如果我想给这片页..like下载link..how做我把在href
标记中,以便将用户重定向到该页面?
<a href="{{URL::to($book->download_link)}}">{{$book->name}}</a>
// This doesn't work
'网址::以()'添加基本URL,所以如果你已经下载链接添加整个路径,然后只需添加像'HREF =“{{$书本 - > DOWNLOAD_LINK}} “' –