| @@ 109-115 (lines=7) @@ | ||
| 106 | * |
|
| 107 | * @return \Illuminate\Http\JsonResponse |
|
| 108 | */ |
|
| 109 | public function cache() |
|
| 110 | { |
|
| 111 | Artisan::call('cache:clear'); |
|
| 112 | $this->log->info(trans('cms::utilities.cache.success') . trans('cms::utilities.field.executed_by', |
|
| 113 | ['name' => $this->getCurrentUserName()])); |
|
| 114 | ||
| 115 | return $this->notifySuccess(trans('cms::utilities.cache.success')); |
|
| 116 | } |
|
| 117 | ||
| 118 | /** |
|
| @@ 150-159 (lines=10) @@ | ||
| 147 | * |
|
| 148 | * @return \Illuminate\Http\JsonResponse |
|
| 149 | */ |
|
| 150 | public function views() |
|
| 151 | { |
|
| 152 | Artisan::call('view:clear'); |
|
| 153 | $this->log->info(sprintf("%s %s", |
|
| 154 | trans('cms::utilities.views.success'), |
|
| 155 | trans('cms::utilities.field.executed_by', ['name' => $this->getCurrentUserName()]) |
|
| 156 | )); |
|
| 157 | ||
| 158 | return $this->notifySuccess(trans('cms::utilities.views.success')); |
|
| 159 | } |
|
| 160 | ||
| 161 | /** |
|
| 162 | * Log viewer. |
|