File tree Expand file tree Collapse file tree 1 file changed +17
-5
lines changed
Expand file tree Collapse file tree 1 file changed +17
-5
lines changed Original file line number Diff line number Diff line change @@ -25,6 +25,16 @@ class Builder
2525 use BuildsQueries;
2626 use ForwardsCalls;
2727
28+ /**
29+ * The model instance being queried.
30+ */
31+ protected Model $ model ;
32+
33+ /**
34+ * The query builder instance.
35+ */
36+ protected QueryBuilder $ query ;
37+
2838 /**
2939 * The global scopes to be applied.
3040 */
@@ -72,11 +82,13 @@ class Builder
7282 /**
7383 * Constructor.
7484 */
75- public function __construct (
76- protected Model $ model ,
77- protected QueryBuilder $ query ,
78- ) {
79- $ this ->query ->select ([$ this ->model ->getGuidKey (), '* ' ]);
85+ public function __construct (Model $ model , QueryBuilder $ query )
86+ {
87+ $ this ->model = $ model ;
88+
89+ $ this ->query = $ query ->select ([
90+ $ this ->model ->getGuidKey (), '* ' ,
91+ ]);
8092 }
8193
8294 /**
You can’t perform that action at this time.
0 commit comments