app/Http/Controllers/TasksController.php
/**
     * Update the specified resource in storage.
     *
     * @param  \Illuminate\Http\Request  $request
     * @param  int  $id
     * @return \Illuminate\Http\Response
     */
Update the specified resource in storage.
Update the specified resource in storage .
public function update(Request $request, $id)
    {
        $task = Task::find($id);
        $task->name = $request->input('name');
        $task->description = $request->input('description');
        $task->task_date = $request->input('task_date');
        $task->save();
        return redirect()->back()->with('success', 'Agenda berhasil diedit');
    }
public function update ( Request $ request , $ id ) { $ task = Task :: find ( $ id ) ; $ task -> name = $ request -> input ( 'name' ) ; $ task -> description = $ request -> input ( 'description' ) ; $ task -> task_date = $ request -> input ( 'task_date' ) ; $ task -> save ( ) ; return redirect ( ) -> back ( ) -> with ( 'success' , 'Agenda berhasil diedit' ) ; }
Update the specified resource in storage.
Update the specified resource in storage .