@if ( (Str::contains(config('app.url'), 'www') && !Str::contains(Request::url(), 'www')) || (Str::contains(Request::url(), 'www') && !Str::contains(config('app.url'), 'www'))) You must access the installation URL {{ Str::contains(config('app.url'), 'www') && !Str::contains(Request::url(), 'www') ? 'with' : 'without' }} www. @endif