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 {
7575
7676 if ($ obj instanceof Model) { //check to make sure it is a model
7777 $ reflection = new ReflectionClass ($ obj );
78- $ with = $ reflection ->getProperty ('with ' );
79- $ with ->setAccessible (true );
78+
79+ // $with = $reflection->getProperty('with');
80+ // $with->setAccessible(true);
8081
8182 $ appends = $ reflection ->getProperty ('appends ' );
8283 $ appends ->setAccessible (true );
@@ -159,7 +160,7 @@ function generateSchemas(): array {
159160 }
160161 }
161162
162- $ required = array_merge ($ required , $ with ->getValue ($ obj ));
163+ // $required = array_merge($required, $with->getValue($obj));
163164
164165 foreach ($ appends ->getValue ($ obj ) as $ item ) {
165166 $ methodeName = 'get ' . ucfirst (Str::camel ($ item )) . 'Attribute ' ;
You can’t perform that action at this time.
0 commit comments