I want to delete all students wich are 17 years old.
I can't get it with this simple code. It just deletes one by one, instead of deleting all rows. What's wrong?
Code:
//Set age
$age = 17;
// Get student
$u = new Student();
$u->where('age', $age)->get();