I want to use the data from the SQL Query, to explain it further here is my code:
$myquery = DB::table(\'attendances\')->select(\'user_id\')->where(\'d