issues
search
MaksiConGit
/
proyecto-final-tercero
3
stars
0
forks
source link
Como dev, quiero crear modelo, migración y validación de "teacher_subject", para poder almacenar profesores que dan materias
#51
Closed
MaksiConGit
closed
1 month ago
MaksiConGit
commented
1 month ago
Los campos requeridos:
[x] id()
[x] foreignId('teacher_id') -> constrained() -> onUpdate('cascade') -> onDelete('restrict') => 'required|exists:teachers,id'
[x] foreignId('subject_id') -> constrained() -> onUpdate('cascade') -> onDelete('restrict') => 'required|exists:subjects,id'
[x] boolean('is_deleted')->default(false) => 'boolean'
Los campos requeridos: