public function edit($id)
    {
        $metric = $this->metric->findOrFail($id);

        $form = $this->presenter->form($metric);

        return view('metrics.edit', compact('form'));
    }
public function edit($id)
    {
        $metric = $this->metric->findOrFail($id);

        $form = $this->presenter->form($metric);

        return view('metrics.edit', compact('form'));
    }
public function edit ( $ id ) { $ metric = $ this -> metric -> findOrFail ( $ id ) ; $ form = $ this -> presenter -> form ( $ metric ) ; return view ( 'metrics.edit' , compact ( 'form' ) ) ; }
Displays the form for editing the specified metric.

@param int|string $id

@return \Illuminate\View\View
Displays the form for editing the specified metric .