Skip to content

Radio button for each row data retrieve from database

I success to retrieve the data but i got the problem with the radio button where I want each row the radio button is checked for the Tidak label The image of the problem is here Answer In your current code name attribute of radio button is same so only one radio will be set as selected .Instead change your

hasManyThrough – Laravel 5.8

I have database table structure like : ClassRoom id (int) PK name (varchar) ClassTeacherCourse id (int) PK id_classroom (int) FK id_teacher (int) FK id_course (int) FK Course id (int) PK course_name (varchar) Teacher id (int) PK teacher_name (varchar) So far I have code just to call ClassRoom table & Clas…