src/Database/Models.php
public static function query($table)
    {
        $query = new Builder(
            $connection = static::user()->getConnection(),
            $connection->getQueryGrammar(),
            $connection->getPostProcessor()
        );

        return $query->from(static::table($table));
    }
public static function query($table)
    {
        $query = new Builder(
            $connection = static::user()->getConnection(),
            $connection->getQueryGrammar(),
            $connection->getPostProcessor()
        );

        return $query->from(static::table($table));
    }
public static function query ( $ table ) { $ query = new Builder ( $ connection = static :: user ( ) -> getConnection ( ) , $ connection -> getQueryGrammar ( ) , $ connection -> getPostProcessor ( ) ) ; return $ query -> from ( static :: table ( $ table ) ) ; }
Get a new query builder instance.

@param  string  $table
@return \Illuminate\Database\Query\Builder
Get a new query builder instance .