I have the following relationship in my Model
Client:
public function Usuario(){
return $this->hasMany('SIST\Models\Admin\Usuario', 'id_cliente');
}
I pass the client data by my Controller
:
$cliente = Cliente::find($id_cliente);
return view('admin/usuario/index',['cliente' => $cliente]);
And I list users in my View
:
@foreach($cliente->Usuario as $usuario)
I need to know how to page the results.