HasBuilder
trait HasBuilder
Methods
Get a new query builder that doesn't have any global scopes or eager loading.
Get a new query builder with no relationships loaded.
Get a new query builder that doesn't have any global scopes.
Get a new query to restore one or more models by their queueable IDs.
Begin querying the model on a given connection.
Begin querying the model on the write connection.
Details
at line 20
static Builder
query()
Begin querying the model.
at line 30
Builder
newEloquentBuilder(Builder $query)
Create a new Eloquent query builder for the model.
at line 40
Builder
newQuery()
Get a new query builder for the model's table.
at line 50
Builder
newModelQuery()
Get a new query builder that doesn't have any global scopes or eager loading.
at line 60
Builder
newQueryWithoutRelationships()
Get a new query builder with no relationships loaded.
at line 70
Builder
newQueryWithoutScopes()
Get a new query builder that doesn't have any global scopes.
at line 80
Builder
newQueryWithoutScope(Scope|string $scope)
Get a new query instance without a given scope.
at line 90
Builder
newQueryForRestoration(array|int|string $ids)
Get a new query to restore one or more models by their queueable IDs.
at line 100
static Builder
on(UnitEnum|string|null $connection = null)
Begin querying the model on a given connection.
at line 110
static Builder
onWriteConnection()
Begin querying the model on the write connection.
at line 120
static Builder
with(array|string $relations)
Begin querying a model with eager loading.