This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.
anuruddha34276
Hi, I have a model called "Lessons" and it has a "belongsToMany" relationship called "students" with table called "students_for_lesson". Lesson model has fields called "number_of_students" and "number_of_enrollments" for each lesson.
what I want is to give a message stopping Add students for the lesson when "number_of_enrollments" value reach "number_of_students" value.
Any help is appreciated!
Last updated
1-1 of 1