public function index()
{
$userbio = (Auth::user()->biometrics);
if (Auth::user()->hasRole('User')) {
$attendances = Attendance::latest()->orderBy('date')->paginate(30)->where('biometrics', '=', $userbio);
return view('attendances.index',compact('attendances'))
->with('i', (request()->input('page', 1) - 1) * 5);
};
}
Hi experts! I just wanted to ask why am i having an error of Method links does not exist. when i put "where('biometrics', '=', $userbio);". I am adding it so that the data it will show are only fields that are equal to $userbio.
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire