/** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index() { return Turma::all(); }
/** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index() { $turmas = Turma::all(); $alunos = Aluno::alunoJoinPessoas(); return view('admin.aluno', ['alunos' => $alunos, 'turmas' => $turmas]); }