how to create array in laravel blade code example Example: laravel in array blade @if(in_array($val, $array))