app/Http/Controllers/AlunosController.php
/**
   * Show the form for editing the specified resource.
   *
   * @param  \App\Aluno  $aluno
   * @return \Illuminate\Http\Response
   */
Show the form for editing the specified resource.
Show the form for editing the specified resource .
public function edit(Aluno $aluno)
  {
    $cursos = Curso::pluck('name', 'id');
    return view('alunos.edit', array('aluno' => $aluno, 'cursos' => $cursos));
  }
public function edit ( Aluno $ aluno ) { $ cursos = Curso :: pluck ( 'name' , 'id' ) ; return view ( 'alunos.edit' , array ( 'aluno' => $ aluno , 'cursos' => $ cursos ) ) ; }
Show the form for editing the specified resource.
Show the form for editing the specified resource .