2016-05-15 61 views

回答

2

用形式包裝你的按鈕:

<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' => '[email protected]']) !!} 
    // button code 
{!! Form::close() !!} 
相關問題