I\'m using the laravel framework for a project, and I\'m implementing a basic form page, where I require certain values to be required, something that can be do
I believe the correct answer is similar to the other post where the third parameter is
array('required' => 'required')
however to get the attribute without any value you can do the following:
array('required' => '')
The input field (for text example), will then look what was necessary in the question.
Laravel Example:
{{ Form::text('title', '', array('tabindex' => '1', 'required' => '')) }}
HTML output:
I believe this actually shorthand for required='', just wanted to add this note