私のテーブルからデータを取得し、私のビューに表示し、このデータにページを作成しようとしています。私はこの問題を受け取り、解決策を見つけることができませんでした。以前のプロジェクトでもまったく同じことをやっていて、うまくいきました。ここ
は私のコントローラpublic function hadiBirlikteCalisalimShow(){
$users =DB::table('birlikte_calisalim')->paginate(15);
return view('admin.birliktecalisalim',compact(['users']));
}
であり、これは私の見解
<table class="table table-bordered table-hover table-striped">
<thead>
<tr>
<th>İsim</th>
<th>Email</th>
<th>Tarih</th>
<th>İstek</th>
</tr>
</thead>
<tbody>
@foreach($users as $row)
<tr>
<td>{{$users->name}}</td>
<td>{{$users->email}}</td>
<td>{{$users->tarih}}</td>
<td>{{$users->message}}</td>
</tr>
@endforeach
</tbody>
</table>
{{$users->links()}}
hadiBirlikteCalisalimShowは、最もインスピレーションを与える関数名の1つです。 –