The ID entered is =91TDFS78.
The result retrieve is of ID = 91.
in below query:
$idusers = \DB::table('users')
->select('users.*')
->where('id','=', $id)
->get();
from Latest question asked on Laravel tag.
via nabil UPDATE: Thank you for all, I have to do the test before running the query :
$isdigit = ctype_digit((string)$id);
if($isdigit){
$idusers = \DB::table('users')
->select('users.*')
->where('id','=', $id)
->get();
}