Skip to content

Commit

Permalink
[10.x] Added convenient way to use withGlobalScope only with class st…
Browse files Browse the repository at this point in the history
…ring syntax
  • Loading branch information
Dominik Müller committed Feb 12, 2024
1 parent f80b33d commit 7c445af
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Illuminate/Database/Eloquent/Builder.php
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,8 @@ public function make(array $attributes = [])
* @param string $identifier
* @param \Illuminate\Database\Eloquent\Scope|\Closure|null $scope
* @return $this
*
* @throws \InvalidArgumentException
*/
public function withGlobalScope($identifier, $scope = null)
{
Expand Down

0 comments on commit 7c445af

Please sign in to comment.