| Conditions | 1 |
| Paths | 1 |
| Total Lines | 9 |
| Code Lines | 3 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 4 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 36 | 1 | public function store(SettingRequest $request) |
|
| 37 | { |
||
| 38 | 1 | Setting::set('media_path', rtrim(trim($request->media_path), '/')); |
|
| 39 | |||
| 40 | // In a next version we should opt for a "MediaPathChanged" event, |
||
| 41 | // but let's just do this async now. |
||
| 42 | 1 | $this->mediaSyncService->sync(); |
|
| 43 | |||
| 44 | 1 | return response()->json(); |
|
| 45 | } |
||
| 47 |