app/Http/Controllers/API/ProgramController.php
/**
     * Update the specified resource in storage.
     *
     * @param  \App\Http\Requests\UpdateProgramRequest  $request
     * @param  \App\Models\Program  $program
     * @return \Illuminate\Http\Response
     */
Update the specified resource in storage.
Update the specified resource in storage .
public function update($id,UpdateProgramRequest $request)
    {
        $prog = Program::find($id);
        $prog->update($request->all());
        return response()->json('The book successfully updated');
    }
public function update ( $ id , UpdateProgramRequest $ request ) { $ prog = Program :: find ( $ id ) ; $ prog -> update ( $ request -> all ( ) ) ; return response ( ) -> json ( 'The book successfully updated' ) ; }
Update the specified resource in storage.
Update the specified resource in storage .