I would guess that it is because you have: public $usuarios; which by default is null and foreach throws an exception not being able to iterate over a null object. Don't know or see where and how do you call the usarios method which adds the users to the list.
Maybe a solution would be if you initialize it as an empty array, and fill it in in the constructor as I don't see you doing anything special in the document.
So try this:
class AsignarNota extends Component {
public $usuarios;
public function __construct()
{
$this->usuarios = User::all();
}
public function render()
{
$cursos = Curso::all();
return view('livewire.asignar-nota',compact('cursos'));
}
}
or have this public $usarios = []; at least.