app/Http/Controllers/TaskController.php
/**
     * Show the form for editing the specified resource.
     *
     * @param  \App\Task  $task
     * @return \Illuminate\Http\Response
     */
Show the form for editing the specified resource.
Show the form for editing the specified resource .
public function edit($id)
    {
        $task = Task::find($id);
        return response()->json($task);
    }
public function edit ( $ id ) { $ task = Task :: find ( $ id ) ; return response ( ) -> json ( $ task ) ; }
Show the form for editing the specified resource.
Show the form for editing the specified resource .