1
I would like to know how and what is the best way to update data in real time on a screen using Laravel. The situation is as follows: I will have a (edit) screen, which displays the items already included on this screen, but you will have the option to add one more item. After adding need to update the data from the screen (or div), without reloading the page. Example:
<div id="lista-servicos">
@foreach($servicos as $servico)
<div class="servicos">
<div class="servico-nome">{{ $servico->nome }}</div>
<div class="valor-total"><span>R$</span>
<span>{{$servico->valor</span>
</div>
</div>
@endforeach
</div>
<a class="btn" id="adicionar-servico">Adicionar Serviços</a>
If you are clicked on add services, and add one more... need to upgrade $servicos. How to do this?
helped me friend, thank you.
– Julio Cesar