or has been removed from later versions as you can just use php null coalesce operator instead ??
Check the upgrade guide
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
When I am developing locally on win10 php7.2 nginx expression like this works just fine
<div class="{{ $menuclass or 'menu'}}">
which gives
<div class="menu">
but as soon as I deploy it via laravel forge to ubuntu machine it fails to work and I get this
<div class="1">
It seems that instead of doing this:
isset($menuclass ) ? $menuclass : 'menu'
it just returns 1
Any ideas why?
This feature was blogged about here: https://laravel-news.com/blade-or-operator
Has it been deprecated in later versions of laravel?
or has been removed from later versions as you can just use php null coalesce operator instead ??
Check the upgrade guide
Please or to participate in this conversation.