issues
search
MaksiConGit
/
proyecto-final-tercero
3
stars
0
forks
source link
Como dev, quiero crear modelo, migración y validación de "teachers", para poder almacenar profesores
#49
Closed
MaksiConGit
closed
1 month ago
MaksiConGit
commented
1 month ago
Los campos requeridos:
[x] id()
[x] string('name') => 'required|string|min:2|max:255'
[x] string('lastname') => 'required|string|min:2|max:255'
[x] string('dni') => 'required|string|max:255'
[x] string('phone') => 'required|string|max:14'
[x] date('birthdate') => 'required|date|before:today'
[x] foreignId('city_id') -> constrained() -> onUpdate('cascade') -> onDelete('restrict') => 'required|exists:cities,id'
[x] foreignId('user_id') -> constrained() -> onUpdate('cascade') -> onDelete('restrict') => 'required|exists:users,id'
[x] boolean('is_deleted')->default(false) => 'boolean'
[x] timestamp()
Los campos requeridos: