0
これは私のコントローラです。
public function index()
{
$customers = $this->customerType->whereNull('deleted_at')->paginate(10);
// please write the view code
return view('admin.customer_type.index')->with(['customers' => $customers]);
}
は、ブレードfile.someoneに私にそのエラーを表示し、感謝
<fieldset>
<label for="visible">Department</label><br>
<input name="hasDepartment" type="radio" value="ture" {!! $customers->hasDepartment == 'ture' ? 'checked' : '' !!}> True<br>
<input name="hasDepartment" type="radio" value="false" {!! $customers->hasDepartment == 'false' ? 'checked' : '' !!}> False
</fieldset>
あなたのデータをループし、顧客オブジェクトの 'hasDepartment()' menthodをループします。 –