Skip to content

Instantly share code, notes, and snippets.

@lucianobragaweb
Created July 16, 2023 20:53
Show Gist options
  • Save lucianobragaweb/8f4f5731ad69ff1008a6c6006777b4df to your computer and use it in GitHub Desktop.
Save lucianobragaweb/8f4f5731ad69ff1008a6c6006777b4df to your computer and use it in GitHub Desktop.
If ternário na View com Laravel/Blade
{ $value or "default" }
@if($value !== null) { $value } @endif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment