what difference there is between such a variable.
$numero = 1;
and a number that comes from this way.
$valorusuario = $request->numero;
Is there a way that the number that comes from $valorusuario
can convert it to the format that has the variable $numero
?
I turned it into int, but I'm still the same
/**
* Display a listing of the resource.
*
* @return \Illuminate\Http\Response
*/
public function selectord(Request $request)
{
$valorusuario = $request->valorusuario;
$int = (intval(var))$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'));
}
If for example I use a simple variable like $ number, the paging works perfect, but if I use the variable $ int that I converted, it loads the first page but not the following, I do not understand what the difference may be so that it is or happen.