I found this "??" symbol in resource > ... > reset in the email input field.
is it an itinerary operator or what ?.
{{ $email ?? old('email') }}
I found this "??" symbol in resource > ... > reset in the email input field.
is it an itinerary operator or what ?.
{{ $email ?? old('email') }}
This is not a Laravel feature, it is PHP's. It came out in PHP 7, called the null coalescing operator. It basically allows you to put a "default" value if a variable is null or undefined.
$name = null;
echo $name ?? 'John'; // This will display Jhon