We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ 113-127 (lines=15) @@ | ||
110 | * |
|
111 | * @return Response |
|
112 | */ |
|
113 | public function edit($id) |
|
114 | { |
|
115 | $this->crud->hasAccessOrFail('update'); |
|
116 | ||
117 | // get the info for that entry |
|
118 | $this->data['entry'] = $this->crud->getEntry($id); |
|
119 | $this->data['crud'] = $this->crud; |
|
120 | $this->data['fields'] = $this->crud->getUpdateFields($id); |
|
121 | $this->data['title'] = trans('backpack::crud.edit').' '.$this->crud->entity_name; |
|
122 | ||
123 | $this->data['id'] = $id; |
|
124 | ||
125 | // load the view from /resources/views/vendor/backpack/crud/ if it exists, otherwise load the one in the package |
|
126 | return view('crud::edit', $this->data); |
|
127 | } |
|
128 | ||
129 | /** |
|
130 | * Update the specified resource in the database. |
|
@@ 189-202 (lines=14) @@ | ||
186 | * |
|
187 | * @return Response |
|
188 | */ |
|
189 | public function listRevisions($id) |
|
190 | { |
|
191 | $this->crud->hasAccessOrFail('revisions'); |
|
192 | ||
193 | // get the info for that entry |
|
194 | $this->data['entry'] = $this->crud->getEntry($id); |
|
195 | $this->data['crud'] = $this->crud; |
|
196 | $this->data['title'] = ucfirst($this->crud->entity_name).' '.trans('backpack::crud.revisions'); |
|
197 | $this->data['id'] = $id; |
|
198 | $this->data['revisions'] = $this->crud->listRevisions($id); |
|
199 | ||
200 | // load the view from /resources/views/vendor/backpack/crud/ if it exists, otherwise load the one in the package |
|
201 | return view('crud::revisions', $this->data); |
|
202 | } |
|
203 | ||
204 | /** |
|
205 | * Restore a specific revision for the specified resource. |