Eloquent::getQuery PHP Method

getQuery() public static method

Get the underlying query builder instance.
public static getQuery ( ) : Builder
return Illuminate\Database\Query\Builder
        public static function getQuery()
        {
            return \Illuminate\Database\Eloquent\Builder::getQuery();
        }

Usage Example

コード例 #1
0
ファイル: Datatables.php プロジェクト: testoodoo/OoodooSiteUp
 /**
  * Returns current database prefix
  *
  * @return string
  */
 public function databasePrefix()
 {
     if ($this->query_type == 'builder') {
         $query = $this->query;
     } else {
         $query = $this->query->getQuery();
     }
     return $query->getGrammar()->getTablePrefix();
 }
All Usage Examples Of Eloquent::getQuery
Eloquent