[L6] Break search functionality without breaking the entire app
This commit is contained in:
parent
c97461d602
commit
5b4a65a60c
6 changed files with 41 additions and 3 deletions
13
app/Models/Traits/Searchable.php
Normal file
13
app/Models/Traits/Searchable.php
Normal file
|
@ -0,0 +1,13 @@
|
|||
<?php
|
||||
|
||||
namespace Pterodactyl\Models\Traits;
|
||||
|
||||
use Pterodactyl\Extensions\Illuminate\Database\Eloquent\Builder;
|
||||
|
||||
trait Searchable
|
||||
{
|
||||
public function newEloquentBuilder($query)
|
||||
{
|
||||
return new Builder($query);
|
||||
}
|
||||
}
|
Reference in a new issue