We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ 133-147 (lines=15) @@ | ||
130 | * |
|
131 | * @return Response |
|
132 | */ |
|
133 | public function edit($id) |
|
134 | { |
|
135 | $this->crud->hasAccessOrFail('update'); |
|
136 | ||
137 | // get the info for that entry |
|
138 | $this->data['entry'] = $this->crud->getEntry($id); |
|
139 | $this->data['crud'] = $this->crud; |
|
140 | $this->data['fields'] = $this->crud->getUpdateFields($id); |
|
141 | $this->data['title'] = trans('backpack::crud.edit').' '.$this->crud->entity_name; |
|
142 | ||
143 | $this->data['id'] = $id; |
|
144 | ||
145 | // load the view from /resources/views/vendor/backpack/crud/ if it exists, otherwise load the one in the package |
|
146 | return view('crud::edit', $this->data); |
|
147 | } |
|
148 | ||
149 | /** |
|
150 | * Update the specified resource in the database. |
|
@@ 209-222 (lines=14) @@ | ||
206 | * |
|
207 | * @return Response |
|
208 | */ |
|
209 | public function listRevisions($id) |
|
210 | { |
|
211 | $this->crud->hasAccessOrFail('revisions'); |
|
212 | ||
213 | // get the info for that entry |
|
214 | $this->data['entry'] = $this->crud->getEntry($id); |
|
215 | $this->data['crud'] = $this->crud; |
|
216 | $this->data['title'] = ucfirst($this->crud->entity_name).' '.trans('backpack::crud.revisions'); |
|
217 | $this->data['id'] = $id; |
|
218 | $this->data['revisions'] = $this->crud->listRevisions($id); |
|
219 | ||
220 | // load the view from /resources/views/vendor/backpack/crud/ if it exists, otherwise load the one in the package |
|
221 | return view('crud::revisions', $this->data); |
|
222 | } |
|
223 | ||
224 | /** |
|
225 | * Restore a specific revision for the specified resource. |