Okay,
simple IF statement, simple code, can't find the solution for some reason
if (substr(Auth::User()->email, -14) != "@thomasmore.be" || substr(Auth::User()->email, -22) != "@student.thomasmore.be")
{
echo substr(Auth::User()->email, -14);
}
echoes:
@thomasmore.be
when I just use:
if(substr(Auth::User()->email, -14) != "@thomasmore.be")
it works perfectly.
What am I doing wrong?