Support the ongoing development of Laravel.io →
AlistairMccutchion

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
27 Nov, 2014 at 04:38

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
27 Nov, 2014 at 04:32

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?

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

© 2021 Laravel.io - All rights reserved.