Laravel Deprecated OR in Blade conditions

If you are using PHP 8 or migrating from previous version of PHP to PHP 8 or newer you can see 1 as value rather then actual value. To resolve this use ?? instead of OR.

Previously

{{$value['name'] or 'Guest'}}

Change to

{{$value['name'] ?? 'Guest'}}

Happy coding…