Answers for "laravel split query"

PHP
0

explode in laravel blade

@if ($data->facings != "")
  @foreach(explode(',', $data->facings) as $info) 
    <option>{{$info}}</option>
  @endforeach
@endif
//@sujay
Posted by: Guest on October-16-2020
0

laravel get query result as array

$result = array_map(function ($value) {
    return (array)$value;
}, $result);
Posted by: Guest on July-01-2020

Browse Popular Code Answers by Language