Create the classroom CRUD
Opened this issue · 0 comments
Manuel-Antunes commented
Description
- use the active records pattern to create the crud structure for a classroom
Prerequisites
- create the classroom model
- create the classroom controller
- create the classroom migration
- add the resource of classroom in routes
- create a relationship between teacher (user) and classroom (1:N)
- create a relationship between classrooms and student (N:M)
Additional Info
- use the acl middleware will control the access of the user based in roles and permissions, so, we need to block the classroom to be created for any user that isn't a teacher or an administrator using the middleware
is
from adonis acl
Additional context