app/Http/Controllers/AlunosController.php
/**
   * Show the form for creating a new resource.
   *
   * @return \Illuminate\Http\Response
   */
Show the form for creating a new resource.
@return \Illuminate\Http\Response
Show the form for creating a new resource . @return \ Illuminate \ Http \ Response
public function create()
  {
    $cursos = Curso::pluck('name', 'id');
    return view('alunos.create', array('cursos' => $cursos));
  }
public function create ( ) { $ cursos = Curso :: pluck ( 'name' , 'id' ) ; return view ( 'alunos.create' , array ( 'cursos' => $ cursos ) ) ; }
Show the form for creating a new resource.
Show the form for creating a new resource .