@php
// Use $urlHasPublic from controller, or calculate if not provided (fallback for other routes)
if (!isset($urlHasPublic)) {
$currentUrl = request()->url();
$urlPath = parse_url($currentUrl, PHP_URL_PATH);
$urlHasPublic = str_contains($urlPath, '/public/') || str_ends_with($urlPath, '/public') || str_starts_with($urlPath, '/public');
}
@endphp
1. @lang('modules.dashboard.installation')
@lang('modules.dashboard.installationCompleted')
@if($urlHasPublic)
2. Remove "public" from URL
Your application URL contains "public" which is not recommended for production. Removing "public" from the URL is very important to run the application smoothly and securely.