We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
| @@ 132-146 (lines=15) @@ | ||
| 129 | * |
|
| 130 | * @return Response |
|
| 131 | */ |
|
| 132 | public function edit($id) |
|
| 133 | { |
|
| 134 | $this->crud->hasAccessOrFail('update'); |
|
| 135 | ||
| 136 | // get the info for that entry |
|
| 137 | $this->data['entry'] = $this->crud->getEntry($id); |
|
| 138 | $this->data['crud'] = $this->crud; |
|
| 139 | $this->data['fields'] = $this->crud->getUpdateFields($id); |
|
| 140 | $this->data['title'] = trans('backpack::crud.edit').' '.$this->crud->entity_name; |
|
| 141 | ||
| 142 | $this->data['id'] = $id; |
|
| 143 | ||
| 144 | // load the view from /resources/views/vendor/backpack/crud/ if it exists, otherwise load the one in the package |
|
| 145 | return view('crud::edit', $this->data); |
|
| 146 | } |
|
| 147 | ||
| 148 | /** |
|
| 149 | * Update the specified resource in the database. |
|
| @@ 14-27 (lines=14) @@ | ||
| 11 | * |
|
| 12 | * @return Response |
|
| 13 | */ |
|
| 14 | public function listRevisions($id) |
|
| 15 | { |
|
| 16 | $this->crud->hasAccessOrFail('revisions'); |
|
| 17 | ||
| 18 | // get the info for that entry |
|
| 19 | $this->data['entry'] = $this->crud->getEntry($id); |
|
| 20 | $this->data['crud'] = $this->crud; |
|
| 21 | $this->data['title'] = ucfirst($this->crud->entity_name).' '.trans('backpack::crud.revisions'); |
|
| 22 | $this->data['id'] = $id; |
|
| 23 | $this->data['revisions'] = $this->crud->listRevisions($id); |
|
| 24 | ||
| 25 | // load the view from /resources/views/vendor/backpack/crud/ if it exists, otherwise load the one in the package |
|
| 26 | return view('crud::revisions', $this->data); |
|
| 27 | } |
|
| 28 | ||
| 29 | /** |
|
| 30 | * Restore a specific revision for the specified resource. |
|