Sunday, 1 September 2013

How to add HTML5 custom data-* attribute to Laravel 4 blade template?

How to add HTML5 custom data-* attribute to Laravel 4 blade template?

This line:
{{ Form::open(['action' => 'AnyController@hello', 'class'=> 'hello']) }}
Will result to:
<form method="POST" action="http://localhost:8000/hello"
accept-charset="UTF-8" class="hello">
However, I wanted to add HTML5 custom data-* attribute, such:
<form method="POST" action="http://localhost:8000/hello"
accept-charset="UTF-8" class="hello" data-abide>
How do I do that?
Thanks in advance!

No comments:

Post a Comment