Support the ongoing development of Laravel.io →

AlistairMccutchion

Joined 27 Nov 2014

Statistics

Threads 1
Replies 2
Solutions 0
Articles 0

Shorthand if else statement not working within blade templating

The first line is the original. I am trying to do a conditional @extend. @extends('invoicelayout')...

0 Likes
2 Replies
replied 9 years ago

Shorthand if else statement not working within blade templating

seems to work if I use || instead of or. $var = 1; echo ($var==1 || $var ==0 ? 'true: ' : 'false');...

0 Likes
replied 9 years ago

Shorthand if else statement not working within blade templating

Doesn't work with the or statement. I will find out why later. $var = 1; echo ($var==1 ? 'true: ' :...

0 Likes

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.