<?php
public function foo()
{
$data=['seth saren','petro alex','nov thida','aeu','laravel'];
return view('hello.world')->with('data',$data);
}
//widok
<ol>
@foreach ($data as $key=>$d)
<li>{{$d}}</li>
@endforeach
</ol>
<?php
public function foo()
{
$data=['seth saren','petro alex','nov thida','aeu','laravel'];
return view('hello.world')->with('data',$data);
}
//widok
<ol>
@foreach ($data as $key=>$d)
<li>{{$d}}</li>
@endforeach
</ol>