Skip to content

Instantly share code, notes, and snippets.

View michaelklopf's full-sized avatar
🎓
ときどき

Michael michaelklopf

🎓
ときどき
View GitHub Profile
@michaelklopf
michaelklopf / TNTSearchEngine.php
Last active August 14, 2018 07:22
Fix to use orderBy when searching
<?php
namespace TeamTNT\Scout\Engines;
use Illuminate\Database\Eloquent\Collection;
use Illuminate\Support\Facades\DB;
use Laravel\Scout\Builder;
use Laravel\Scout\Engines\Engine;
use TeamTNT\TNTSearch\TNTSearch;
use TeamTNT\TNTSearch\Exceptions\IndexNotFoundException;