Skip to content

Instantly share code, notes, and snippets.

@claar
Last active May 30, 2017 20:06
Show Gist options
  • Save claar/3aacc115a8375bc2b7167088535c9809 to your computer and use it in GitHub Desktop.
Save claar/3aacc115a8375bc2b7167088535c9809 to your computer and use it in GitHub Desktop.
Former field help block doesn't render inside blade @section
<fieldset>
<legend>Test 1</legend>
<p>I am test 1</p>
{!! Former::number('field1')->blockhelp('This is the help for field1.') !!}
</fieldset>
<!DOCTYPE html>
<html>
<head></head>
<body>
<fieldset>
<legend>Test 2</legend>
<p>I am test 2</p>
{!! Former::vertical_open()->id('milkTrackerSetup') !!}
{!! Former::number('field2')->blockhelp('This is the help for field2.') !!}
@include('test1')
{!! Former::close() !!}
</fieldset>
</body>
</html>
<?php
class MilkTrackersController extends App\Http\Controllers\Controller
{
public function getIndex()
{
return view('test1');
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment