skip to Main Content

Bug on checkboxes in laravel livewire

I'm having a doble problems with my checkboxes on livewire component. I'm trying to save in my form's table two checkboxes. This checkboxes take their value in an other table named "Garde_type". Checkbox "home" save in my form's table the…

VIEW QUESTION

get rid of numbers in json response (LARAVEL 8)

my function in a controller is here below public function getStudentsinGrade($grade, $school_id){ $students = Student::where('school_id', $school_id)->get(); $this -> grade = $grade; $gradeStudent= $students->filter(function($value,$key){ return $value->grade == $this->grade; }); if(count($gradeStudent) > 0){ return response()->json($gradeStudent); } else{ return response('No Registered Student'); }…

VIEW QUESTION
Back To Top
Search