jeudi 19 août 2021

Laravel if type is this or this

Hello i'm having problem with @if syntax. I want to show some message but it's don't works. It's works only on one type. but i need in 3 types.

@if($article->type == 'analytic', 'news', 'interview')
SHOW THIS
@endif

Aucun commentaire:

Enregistrer un commentaire