I recently using Laravel version 5.8, now I am little confused about how to input checkbox value to the table in the database, the checkbox value always return null, even the checkbox is selected, can anyone help me with this by the way, this is my form checkbox
<form action="{{ $siswa->id_siswa}}/verifikasi">
@csrf
<label for=""><input type="checkbox" name="ijazah" id="" value="true">ijazah</label>
</form>
and this is my function in the controller
public function approve(Request $request,$id_siswa){
$ijazah = $request->ijazah;
dd($ijazah);
}
$request->input('ijazah');