code: public function edit($id)
      {
          $model = $this->gateway->find($id);
          $relations = $this->relation->lists('name', 'id');
  
          return view('entrust-gui::'.$this->resource.'.edit', compact(
              'model',
              'relations'
          ));
      }
docs: Show the form for editing the specified resource.
  GET /model/{id}/edit
  
  @param int $id
  
  @return Response