public function getWebResource($filePath, $withDomain = false) { $assetPath = $this->getResource($filePath, false, false); $result = asset($assetPath, $withDomain); return $result; }