This commit is contained in:
2026-02-12 17:56:16 +00:00
parent a4f80c85c2
commit 2ffd916e2f
27 changed files with 1181 additions and 60 deletions

17
app/Models/alunos.php Normal file
View File

@@ -0,0 +1,17 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class alunos extends Model
{
public function turma()
{
return $this->belongsTo(turmas::class, 'id_turma', 'id');
}
public function responsaveis() {
return $this->hasMany(User::class, 'id', 'id_responsavel');
}
}