I think this is redundant but actually I don't get any answer which can solve my problem.
What I need is that - I make a database and get data from this database and display in a page. But my database is changed gradually. So I need to change the display page gradually and for that I need to reload a certain div excepts the whole page. I am using Laravel 5.3 and here is my codes-
Route.php
Route::get('display','DisplayController@index');
DisplayController.php
$data = Data::all();
return view('display',compact('data'));
display.blade.php
<div class='row' id='myData'>
<div class='col-sm-12>
@foreach($data as $d)
<p></p>
<p></p>
@endforeach
</div>
</div>
Now after some seconds I need to reload only the #myData div and display the new data if the database is changed.
from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2kKBgO0
via IFTTT
Aucun commentaire:
Enregistrer un commentaire