(layouts) if (!str_contains($contents, ' $line) { $line_number = $line_num + 1; // Check for ]*href=["\'](\/[^"\']*)["\'][^>]*>/i', $line, $matches)) { $href = $matches[1]; // Skip if it's a CDN/external URL (contains http) if (str_contains(strtolower($line), 'http')) { continue; } $violations[] = [ 'type' => 'local_css', 'line' => $line_number, 'code' => trim($line), 'path' => $href ]; } // Check for ") . " KEY BENEFITS: - Automatic filemtime() cache-busting on every page load - Proper asset ordering (CDN assets → Public assets → Compiled bundles) - Redis-cached path resolution for performance - Ambiguity detection prevents multiple files with same path BUNDLE INCLUDE SYNTAX: - Prefix with /public/ for static assets from public/ directories - Path after /public/ is searched across ALL public/ directories in rsx/ - Example: '/public/vendor/css/core.css' resolves to 'rsx/public/vendor/css/core.css' CACHE-BUSTING: - Bundle generates tags with for fresh timestamps - No need to manually manage version parameters - Updates automatically when file changes For complete documentation: php artisan rsx:man bundle_api (See PUBLIC ASSET INCLUDES section)"; } }