Monday, March 13, 2017

Retrieve Checkbox Value that has been stored on DB

I've been stored my checkbox value into DB using this code

$request->merge([ 
    'revisi_dokumen' => implode(',', (array) $request->get('revisi_dokumen'))
    ]);

But now i can't get it back when i try to edit(in editpage.blade), i want the checkbox is checked if it's value same as value in DB, how do do that guys ? please kindly help me solve



via Christianus Andre

Advertisement