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