Skip to content

Commit

Permalink
patch
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Oct 29, 2020
1 parent c7309f1 commit 0fb15ae
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions src/Illuminate/Database/Eloquent/Builder.php
Expand Up @@ -1169,6 +1169,10 @@ protected function createSelectWithConstraint($name)
{
return [explode(':', $name)[0], static function ($query) use ($name) {
$query->select(array_map(static function ($column) use ($query) {
if (Str::contains($column, '.')) {
return $column;
}

return $query instanceof BelongsToMany
? $query->getRelated()->getTable().'.'.$column
: $column;
Expand Down
2 changes: 1 addition & 1 deletion src/Illuminate/Foundation/Application.php
Expand Up @@ -33,7 +33,7 @@ class Application extends Container implements ApplicationContract, CachesConfig
*
* @var string
*/
const VERSION = '7.29.1';
const VERSION = '7.29.2';

/**
* The base path for the Laravel installation.
Expand Down

0 comments on commit 0fb15ae

Please sign in to comment.