Skip to content

Commit

Permalink
refactor(graphql): TestObject marked as Searchable.
Browse files Browse the repository at this point in the history
  • Loading branch information
LastDragon-ru committed Oct 17, 2023
1 parent b5e9158 commit 9d8d2c9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public function testCall(
$grammar = new $grammar();

if ($builder instanceof EloquentBuilder) {
$builder->toBase()->grammar = $grammar;
$builder->getQuery()->grammar = $grammar;
} else {
$builder->grammar = $grammar;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
use Illuminate\Database\Eloquent\Factories\Factory;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Laravel\Scout\Searchable;
use LastDragon_ru\LaraASP\Eloquent\Concerns\WithoutTimestamps;

/**
Expand All @@ -15,6 +16,7 @@
*/
class TestObject extends Model {
use HasFactory;
use Searchable;
use WithoutTimestamps;

/**
Expand Down

0 comments on commit 9d8d2c9

Please sign in to comment.