I tried to reset the search value but it didn't work, the reason I did so was because the column value I saved in the database was tcvn3, so I wanted to convert the search value to tcvn3 so that when searching DataTables system returns exact results
$query = DB::table('_Notice')->select(['ID', 'ContentID', 'Subject', 'Article', 'EditDate']);
request()->input('search')['value'] = ConvertString::convertEncoding(request()->input('search')['value']);
$strJson = DataTables::of($query)->toJson();
from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/2LLRSSr
via IFTTT
Aucun commentaire:
Enregistrer un commentaire