So, now I am working with the update part of my program, now I want to fill out my forms with old entries from my database in order to edit them. Now my problem is the switch on how to choose the right one. I tried this code, I use if on my radio buttons
{{ Form::label('Type','Type')}}
{{ Form::radio('ctype', '1',if(($item->bname)==1){true}) }}
{{ Form::label('Rooster','Rooster')}}
{{ Form::radio('ctype', '0') }}
{{ Form::label('Hen','Hen')}}
But I'm just getting 500 error, please help
source
share