protected function newModelQuery($model = null)
    {
        return is_null($model)
                ? $this->createModel()->newQuery()
                : $model->newQuery();
    }
protected function newModelQuery($model = null)
    {
        return is_null($model)
                ? $this->createModel()->newQuery()
                : $model->newQuery();
    }
protected function newModelQuery ( $ model = null ) { return is_null ( $ model ) ? $ this -> createModel ( ) -> newQuery ( ) : $ model -> newQuery ( ) ; }
Get a new query builder for the model instance.

@param  \Illuminate\Database\Eloquent\Model|null  $model
@return \Illuminate\Database\Eloquent\Builder
Get a new query builder for the model instance .