Some Laravel blade cheats

· · 2 months ago

Section Name


Short hand IF
$var ? 'Hi' : 'GoodBye'

Short hand IF/ELSE
$var == 'Hello' ? 'Hi' : 'GoodBye'