Skip to content

Commit

Permalink
fix conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Oct 29, 2020
2 parents 4b5faf5 + 0fb15ae commit aa81c2e
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
Original file line number Diff line number Diff line change
Expand Up @@ -1255,6 +1255,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
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class Application extends Container implements ApplicationContract, CachesConfig
*
* @var string
*/
const VERSION = '8.12.1';
const VERSION = '8.12.2';

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

0 comments on commit aa81c2e

Please sign in to comment.