'does. not work' is not something people can help with
Please be more specific
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Hi, my app is works on local server (xampp php version 7.2.4). I uploaded my app to shared webhosting (php version 7.2.4)) and me app does not work properly. It does not show me a listing (example tables with multiple @foreach @if ).
I am download me app from share hosting to locel serve and app on local works smoothly (also with the database share hosting).
I tried clearing the cache (view:clear, route:clear, cache:clear, config:clear) but it did not help.
Where could be the problem?
Thank you very much.
Next I add a code snippet that works on local server but does not work on shared server:
<tr>
@foreach($contractstatus as $contractstatus2)
@foreach($employy as $employy2)
@foreach($client as $client2)
@if(($contract->stav_zakazky===$contractstatus2->id)&&($contract->zodpovedna_osoba_id===$employy2->id)&&($contract->client_id===$client2->id))
<td>{{ $employy2->meno}}</td>
<td>{{ $contractstatus2->nazov_stavu}}</td>
<td>{{ $client2->nazov_firmy}}</td>
<td>{{ $contract->poradove_cislo }}</td>
<td>{{ $contract->pocet_ks }}</td>
<td>{{ $contract->odhadovany_cas }}</td>
@endif
@endforeach
@endforeach
@endforeach
</tr>
EDIT: Problem solved: @if The condition must be == no ===.
Please or to participate in this conversation.