app/Http/Controllers/TaskController.php
/**
     * Show the form for editing the specified resource.
     *
     * @param  int  $id
     * @return Response
     */
Show the form for editing the specified resource.
@param  int  $id
@return Response
Show the form for editing the specified resource . @param int $id @return Response
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 .