We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
| @@ 127-136 (lines=10) @@ | ||
| 124 | * @return \Illuminate\Http\Response |
|
| 125 | * @internal param int $id |
|
| 126 | */ |
|
| 127 | public function update(Request $request, $slug) |
|
| 128 | { |
|
| 129 | $article = $this->articles->whereSlug($slug); |
|
| 130 | ||
| 131 | $this->save($request, $article); |
|
| 132 | ||
| 133 | account()->record(Activity::$updated, $article); |
|
| 134 | ||
| 135 | return redirect()->route('admin.articles.index'); |
|
| 136 | } |
|
| 137 | ||
| 138 | /** |
|
| 139 | * Remove the specified resource from storage. |
|
| @@ 144-153 (lines=10) @@ | ||
| 141 | * @param int $id |
|
| 142 | * @return \Illuminate\Http\Response |
|
| 143 | */ |
|
| 144 | public function destroy($slug) |
|
| 145 | { |
|
| 146 | $article = $this->articles->whereSlug($slug); |
|
| 147 | ||
| 148 | $article->delete(); |
|
| 149 | ||
| 150 | account()->record(Activity::$deleted, $article); |
|
| 151 | ||
| 152 | return redirect()->route('admin.articles.index'); |
|
| 153 | } |
|
| 154 | ||
| 155 | /** |
|
| 156 | * Category Index. |
|