toneee
5451
4
Laravel

Blade Check if variable is in Array

Posted 2 years ago by toneee

Hi All,

I am a little stuck with a blade template, I need to check if a variable is in an array, how would I do this? The array can vary in length. If the value is found in the array I need to output a string.

Thanks!

Please sign in or create an account to participate in this conversation.

Reply to

Use Markdown with GitHub-flavored code blocks.