app/Http/Controllers/Customers/CustomerNotesController.php 1 location
|
@@ 100-107 (lines=8) @@
|
| 97 |
|
} |
| 98 |
|
|
| 99 |
|
// Delete a customer note |
| 100 |
|
public function destroy($id) |
| 101 |
|
{ |
| 102 |
|
CustomerNotes::find($id)->delete(); |
| 103 |
|
|
| 104 |
|
Log::debug('Route '.Route::currentRouteName().' visited by '.Auth::user()->full_name); |
| 105 |
|
Log::notice('Customer Note ID - '.$id.' deleted by '.Auth::user()->full_name); |
| 106 |
|
return response()->json(['success' => true]); |
| 107 |
|
} |
| 108 |
|
} |
| 109 |
|
|
app/Http/Controllers/Installer/SettingsController.php 1 location
|
@@ 162-170 (lines=9) @@
|
| 159 |
|
} |
| 160 |
|
|
| 161 |
|
// Create a new backup |
| 162 |
|
public function runBackup() |
| 163 |
|
{ |
| 164 |
|
Log::debug('Route '.Route::currentRouteName().' visited by '.Auth::user()->full_name); |
| 165 |
|
|
| 166 |
|
Artisan::call('tb-backup:run'); |
| 167 |
|
|
| 168 |
|
Log::notice('Backup created by '.Auth::user()->full_name); |
| 169 |
|
return response()->json(['success' => true]); |
| 170 |
|
} |
| 171 |
|
|
| 172 |
|
|
| 173 |
|
|
app/Http/Controllers/TechTips/TechTipCommentsController.php 1 location
|
@@ 57-65 (lines=9) @@
|
| 54 |
|
} |
| 55 |
|
|
| 56 |
|
// Delete a comment |
| 57 |
|
public function destroy($id) |
| 58 |
|
{ |
| 59 |
|
Log::debug('Route '.Route::currentRouteName().' visited by '.Auth::user()->full_name); |
| 60 |
|
|
| 61 |
|
TechTipComments::find($id)->delete(); |
| 62 |
|
|
| 63 |
|
Log::warning('A Tech Tip Comment (id# '.$id.') was deleted by '.Auth::user()->full_name); |
| 64 |
|
return response()->json(['success' => true]); |
| 65 |
|
} |
| 66 |
|
} |
| 67 |
|
|