LaraDex/app/Http/Controllers/TrainerControler.php
/**
     * Store a newly created resource in storage.
     *
     * @param  \Illuminate\Http\Request  $request
     * @return \Illuminate\Http\Response
     */
Store a newly created resource in storage.
Store a newly created resource in storage .
public function store(Request $request)
    {   
        $trainer = new Trainer();
        $trainer -> nombre=$$request->input("nombre");
        $trainer->save();
        return $request->input('nombre'); 
    }
public function store ( Request $ request ) { $ trainer = new Trainer ( ) ; $ trainer -> nombre = $ $ request -> input ( " nombre " ) ; $ trainer -> save ( ) ; return $ request -> input ( 'nombre' ) ; }
Store a newly created resource in storage.
Store a newly created resource in storage .
// este solo retorna lo que yo quiero que retorne en forma separada.! //return $request -> all(); // Almacena un nuevo recurso dentro del storage, para obtener por los datos que viene del formulario