Data Fetch krny k liye sb sy phly database ko connect krty hain aur phir table ko, but mere developer ny kuch ajeeb tareqy sy kiya hua hai jo mujhe smjh nahi aa rahi kindly mujhe guide kr dyn k usne kis trah database ko link kiya hua hai?

@extends('user.layout.layout')
@section('content')
<div class="col-md-12 col-sm-12 ">
<div class="x_panel">
<div class="x_title">
<h2>Submitted Survey</h2>
<ul class="nav navbar-right panel_toolbox">

</ul>
<div class="clearfix"></div>
</div>
<div class="x_content">
<div class="row">
<div class="col-sm-12">
<div class="card-box table-responsive">

<table id="datatable-buttons" class="table table-striped table-bordered" style="width:100%">
<thead>
<tr>
<th>ID</th>
<th>points</th>
</tr>
</thead>


<tbody>
@foreach($view as $p)
<tr>
<td>{{$p->s_id}}</td>
<td>{{$p->s_point}}</td>

</tr>
@endforeach
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- jQuery -->
<script src="{{ asset('vendors/jquery/dist/jquery.min.js') }}"></script>
<!-- Bootstrap -->
<script src="{{ asset('vendors/bootstrap/dist/js/bootstrap.bundle.js') }}"></script>
<!-- FastClick -->
@endsection