authorize('admin', User::class); Setting::set('media_path', rtrim(trim($request->media_path), '/')); $this->mediaSyncService->sync(); return response()->noContent(); } }