gpt4 book ai didi

html - 如何在 Laravel Blade 模板中定义超链接?

转载 作者:行者123 更新时间:2023-11-27 23:28:23 25 4
gpt4 key购买 nike

有一个按钮,点击后会重定向到新页面。

我想在 laravel Blade 模板中为此定义一个超链接。

{!! Form::button('<span class="fa fa-arrow-circle-right"></span> Start', 
array('class' => 'btn btn-next next-step pull-right'))
!!}

最佳答案

用表单包裹你的按钮:

<form action="http://example.com">
// button code
</form>

或者:

{!! Form::open(['url' => 'http://example.com']) !!}
// button code
{!! Form::close() !!}

{!! Form::open(['route' => 'route.name']) !!}
// button code
{!! Form::close() !!}

{!! Form::open(['action' => 'Controller@action']) !!}
// button code
{!! Form::close() !!}

关于html - 如何在 Laravel Blade 模板中定义超链接?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37237744/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com