laravel blade array code example Example 1: laravel javascript array from blade var app = @json($array); Example 2: laravel in array blade @if(in_array($val, $array))