PHP 8.3.31
Preview: HasBuilder.php Size: 2.60 KB
/home/getspomw/royalsquad.us/vendor/laravel/framework/src/Illuminate/Database/Eloquent/HasBuilder.php

<?php

namespace Illuminate\Database\Eloquent;

/**
 * @template TBuilder of \Illuminate\Database\Eloquent\Builder
 */
trait HasBuilder
{
    /**
     * Begin querying the model.
     *
     * @return TBuilder
     */
    public static function query()
    {
        return parent::query();
    }

    /**
     * Create a new Eloquent query builder for the model.
     *
     * @param  \Illuminate\Database\Query\Builder  $query
     * @return TBuilder
     */
    public function newEloquentBuilder($query)
    {
        return parent::newEloquentBuilder($query);
    }

    /**
     * Get a new query builder for the model's table.
     *
     * @return TBuilder
     */
    public function newQuery()
    {
        return parent::newQuery();
    }

    /**
     * Get a new query builder that doesn't have any global scopes or eager loading.
     *
     * @return TBuilder
     */
    public function newModelQuery()
    {
        return parent::newModelQuery();
    }

    /**
     * Get a new query builder with no relationships loaded.
     *
     * @return TBuilder
     */
    public function newQueryWithoutRelationships()
    {
        return parent::newQueryWithoutRelationships();
    }

    /**
     * Get a new query builder that doesn't have any global scopes.
     *
     * @return TBuilder
     */
    public function newQueryWithoutScopes()
    {
        return parent::newQueryWithoutScopes();
    }

    /**
     * Get a new query instance without a given scope.
     *
     * @param  \Illuminate\Database\Eloquent\Scope|string  $scope
     * @return TBuilder
     */
    public function newQueryWithoutScope($scope)
    {
        return parent::newQueryWithoutScope($scope);
    }

    /**
     * Get a new query to restore one or more models by their queueable IDs.
     *
     * @param  array|int  $ids
     * @return TBuilder
     */
    public function newQueryForRestoration($ids)
    {
        return parent::newQueryForRestoration($ids);
    }

    /**
     * Begin querying the model on a given connection.
     *
     * @param  string|null  $connection
     * @return TBuilder
     */
    public static function on($connection = null)
    {
        return parent::on($connection);
    }

    /**
     * Begin querying the model on the write connection.
     *
     * @return TBuilder
     */
    public static function onWriteConnection()
    {
        return parent::onWriteConnection();
    }

    /**
     * Begin querying a model with eager loading.
     *
     * @param  array|string  $relations
     * @return TBuilder
     */
    public static function with($relations)
    {
        return parent::with($relations);
    }
}

Directory Contents

Dirs: 5 × Files: 23

Name Size Perms Modified Actions
- drwxrwxrwx 2025-09-17 06:53:01
Edit Download
Casts DIR
- drwxrwxrwx 2025-09-17 06:53:01
Edit Download
Concerns DIR
- drwxrwxrwx 2025-09-17 06:53:01
Edit Download
Factories DIR
- drwxrwxrwx 2025-09-17 06:53:01
Edit Download
Relations DIR
- drwxrwxrwx 2025-09-17 06:53:01
Edit Download
3.26 KB lrw-rw-rw- 2025-09-17 06:53:01
Edit Download
5.73 KB lrw-rw-rw- 2025-09-17 06:53:01
Edit Download
348 B lrw-rw-rw- 2025-09-17 06:53:01
Edit Download
61.52 KB lrw-rw-rw- 2025-09-17 06:53:01
Edit Download
22.64 KB lrw-rw-rw- 2025-09-17 06:53:01
Edit Download
2.60 KB lrw-rw-rw- 2025-09-17 06:53:01
Edit Download
1.37 KB lrw-rw-rw- 2025-09-17 06:53:01
Edit Download
1.05 KB lrw-rw-rw- 2025-09-17 06:53:01
Edit Download
930 B lrw-rw-rw- 2025-09-17 06:53:01
Edit Download
1.36 KB lrw-rw-rw- 2025-09-17 06:53:01
Edit Download
137 B lrw-rw-rw- 2025-09-17 06:53:01
Edit Download
1.18 KB lrw-rw-rw- 2025-09-17 06:53:01
Edit Download
564 B lrw-rw-rw- 2025-09-17 06:53:01
Edit Download
63.61 KB lrw-rw-rw- 2025-09-17 06:53:01
Edit Download
13.30 KB lrw-rw-rw- 2025-09-17 06:53:01
Edit Download
1.39 KB lrw-rw-rw- 2025-09-17 06:53:01
Edit Download
4.59 KB lrw-rw-rw- 2025-09-17 06:53:01
Edit Download
1.44 KB lrw-rw-rw- 2025-09-17 06:53:01
Edit Download
677 B lrw-rw-rw- 2025-09-17 06:53:01
Edit Download
1001 B lrw-rw-rw- 2025-09-17 06:53:01
Edit Download
350 B lrw-rw-rw- 2025-09-17 06:53:01
Edit Download
7.76 KB lrw-rw-rw- 2025-09-17 06:53:01
Edit Download
4.73 KB lrw-rw-rw- 2025-09-17 06:53:01
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).