public function fileWebpath($path) { $path = rtrim(config('custom.uploads.webpath'), '/') . '/' . ltrim($path, '/'); return url($path); }