$items = City::orderBY('id', 'DESC')->simplePaginate(3);
return view('city.index')->with('items', $items);
@if(count($items)>0)
@foreach($items as $el)
{{ $el->name}}
{{ $el->position}}
@endforeach
@endif
$items = City::select('id','name',(\DB::raw('ST_X(position) as x')), (\DB::raw('ST_Y(position) as y')))->orderBY('id', 'DESC')->simplePaginate(3);
return view('city.index')->with('items', $items);
{{ $el->x}}
{{ $el->y}}