The code sample is missing the second arg for in_array, it doesn't know where to look
Sorry, if I am understanding this correctly, it should be
@if(in_array($labourType->id, $labourTypes))
Still receiving an error.
Actually if your just trying to list out each element you should be able to use:
@foreach($labourTypes as $id => $name)
<div class="checkbox">
<label>
{!! Form::checkbox("labour_types[]", $id) !!} {{$name}}
</label>
<div>
@endforeach
Notice I switched the field name to snake_case, html doesn't recognize capitalization
I can suggest you to try using "Cloudbacko Software" as this software gives best results while taking backup and with backup it can help you in restoring also. Try it!
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community