I'm using Rackspace Cloud sites to host my PHP application. Throughout one of my blade template files I have an else statement that checks if the logged in user matches a variable and also if one variable also matches another. Quite simply here it is:
@if($job->quote_id == $job->act_id && $job->user_id == Auth::user()->id)
//do the first thing
@else
//do the second thing thing
@endif
If I dd the values I get 21793,21793,4,4. So in this instance the 'first thing' should show, however the 'second thing' shows.
On localhost it works as expected, but when on the live site it doesn't. Has anybody else come across this or can suggest any edits that need to be made?
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire