views-edit.php

<p>Categories</p> <ul> @foreach($cats as $cat) <li>{{ Form::checkbox('cats[]', $cat->id, in_array($cat->id, $post_cats)) }} {{ Form::label('cats_'.$cat->id, $cat->title) }}</li> @endforeach </ul>
Output checkboxes with appropriate 'checked' attributes in Laravel

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.