authorize('admin', User::class); Setting::set('media_path', rtrim(trim($request->media_path), '/')); $this->mediaSyncService->scan(ScanConfiguration::make(owner: $this->user, makePublic: true)); return response()->noContent(); } }