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