public function search(Request $request)
{
$name = $request->input('Name');
$item = DB::connection('6656')->table('Shop_Goods')->where('name', 'LIKE', '%' . $name . '%')->get();
$items = DB::connection('6656')->table('Shop_Goods')->get();
return $item;
}
@foreach ((new App\Services\PlayersService)->TopSila() as $player)
<div class="Block1" style="clear: both;">
<div class="Information" style="display:inline-block;color:#827af7;">ТУТ МЕСТО</div>
<div class="Information" style="display:inline-block;color:#827af7;">{{ $player->NickName }}</div>
<div class="Information" style="display:inline-block;color:#f35d5d;">{{ $player->FightPower}}</div>
<div class="Information" style="display:inline-block;color:#f39913;">{{ $player->Grade }}</div>
<div class="Information" style="display:inline-block;color:#8c1461;">{{ $player->Attack }}</div>
<div class="Information" style="display:inline-block;color:#0597ec;">{{ $player->Defence }}</div>
<div class="Information" style="display:inline-block;color:#3aa205;">{{ $player->Agility }}</div>
<div class="Information" style="display:inline-block;color:#f9b906;">{{ $player->Luck }}</div>
<div class="Information" style="display:inline-block;color:#07efb9;">{{ $player->hp }}</div>
<div class="Information" style="display:inline-block;color:#d509e2;">{{ $player->VIPLevel }}</div>
</div>
@endforeach
Прочитал я все документации, но с поиском у меня вышли проблемы, пытался через foreach вывести, но не получилось