File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -75,8 +75,9 @@ function generateSchemas(): array {
75
75
76
76
if ($ obj instanceof Model) { //check to make sure it is a model
77
77
$ reflection = new ReflectionClass ($ obj );
78
- $ with = $ reflection ->getProperty ('with ' );
79
- $ with ->setAccessible (true );
78
+
79
+ // $with = $reflection->getProperty('with');
80
+ // $with->setAccessible(true);
80
81
81
82
$ appends = $ reflection ->getProperty ('appends ' );
82
83
$ appends ->setAccessible (true );
@@ -159,7 +160,7 @@ function generateSchemas(): array {
159
160
}
160
161
}
161
162
162
- $ required = array_merge ($ required , $ with ->getValue ($ obj ));
163
+ // $required = array_merge($required, $with->getValue($obj));
163
164
164
165
foreach ($ appends ->getValue ($ obj ) as $ item ) {
165
166
$ methodeName = 'get ' . ucfirst (Str::camel ($ item )) . 'Attribute ' ;
You can’t perform that action at this time.
0 commit comments