当前位置: 动力学知识库 > 问答 > 编程问答 >

php - Laravel add multiple classes when using Form::open()

问题描述:

Currently I have a form that looks like this:

{!! Form::open(['route' => 'lists.store', 'class' => 'form1']) !!}

I was wondering how can I add multiple classes something like the following

{!! Form::open(['route' => 'lists.store', 'class' => 'form', 'blah', 'blah2']) !!}

I am expecting the result to be:

<form class="form blah blah2" ...

but instead i just get an error.

网友答案:

Just Try this

{!! Form::open(['route' => 'lists.store', 'class' => 'form blah blah2']) !!}
分享给朋友:
您可能感兴趣的文章:
随机阅读: