app/Http/Controllers/NinoController.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()
    {
      $cancer=cancer::orderBY('nombre','ASC')->pluck('nombre','id');
      $contacto=contacto::orderBY('nombre','ASC')->pluck('nombre','id')->diff(["Estado","Municipio"]);
      $donacion=donacion::orderBY('nombre','ASC')->pluck('nombre','id');
      return view('Nino.nuevo-niño')->with('title', 'Perfil Niños')
      		->with('cancer',$cancer)
      		->with('contacto',$contacto)
      		->with('donacion',$donacion);
    }
public function create ( ) { $ cancer = cancer :: orderBY ( 'nombre' , 'ASC' ) -> pluck ( 'nombre' , 'id' ) ; $ contacto = contacto :: orderBY ( 'nombre' , 'ASC' ) -> pluck ( 'nombre' , 'id' ) -> diff ( [ " Estado " , " Municipio " ] ) ; $ donacion = donacion :: orderBY ( 'nombre' , 'ASC' ) -> pluck ( 'nombre' , 'id' ) ; return view ( 'Nino.nuevo-niño') - >w ith( ' title', Perfil Niños') -> with ( 'cancer' , $ cancer ) -> with ( 'contacto' , $ contacto ) -> with ( 'donacion' , $ donacion ) ; }
Show the form for creating a new resource.
Show the form for creating a new resource .