app/Http/Controllers/Api/CursosController.php
/**
   * Update the specified resource in storage.
   *
   * @param  \Illuminate\Http\Request  $request
   * @param  \App\Curso  $curso
   * @return \Illuminate\Http\Response
   */
Update the specified resource in storage.
Update the specified resource in storage .
public function update(Request $request, Curso $curso)
  {
    $this->validator($request);
    $curso->name = $request->name;
    $curso->descricao = $request->descricao;
    $curso->save();
    return response()->json(['curso' => $curso]);
  }
public function update ( Request $ request , Curso $ curso ) { $ this -> validator ( $ request ) ; $ curso -> name = $ request -> name ; $ curso -> descricao = $ request -> descricao ; $ curso -> save ( ) ; return response ( ) -> json ( [ 'curso' => $ curso ] ) ; }
Update the specified resource in storage.
Update the specified resource in storage .