hi
I have a question.
assume I have a field in my table that its name is consume and this is boolean
I wanna show in the table if consume==1 then 'YES'
and if consume ==0 then 'NO'
how I can do that?
@yajra
return Datatables::eloquent($records)
->editColumn('consume', '{{$consume ? "YES" : "NO" }}')
The documentation for this can be found here
Most helpful comment
The documentation for this can be found here