function call is not allowed in a constant expression code example Example: expression is not allowed as parameter echo $m ?? config('my.status.mode');