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