I have a database table teacher_attendances, with field:
id, name, data, attendance.
I try to generate a pivot table based on teacher_attendances table.
I want rowname as TeacherName and columnname as Date and cloumnname below mark attendance.
How to create pivot table in Laravel 4?