I have a number value that comes from an array,
$valorusuario = $request->valorusuario;
Is it an x and y number, when I see it with dd () "1" appears, is it possible to convert this variable to a numeric value?
It's just that something funny happens to me
/**
* Display a listing of the resource.
*
* @return \Illuminate\Http\Response
*/
public function selectord(Request $request)
{
$valorusuario = $request->valorusuario;
$int = (int)$valorusuario;
$numero = 1;
$consultarea=usuarios::where('user_id', $numero)->paginate(2);
$usuariosOpciones=usuarios::pluck('usuario_ad', 'user_id')->unique();
return view('usuario.consultareas',compact('consultarea','usuariosOpciones'));
}
in this method if I use the variable $ number the paid is perfect, but if I use the variable to which I made the conversion, load the first page but do not load the rest, I do not understand why the mess.