File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -147,11 +147,11 @@ public function getValidationAttributes()
147147 foreach ($ resource as $ field => $ rules ) {
148148 if ($ this ->hasRelation ($ key )) {
149149 $ relation = $ this ->getRelation ($ key )->type ;
150- } elseif (!is_null ($ this ->object ) && method_exists ($ this ->object , $ key )) {
150+ } elseif (! is_null ($ this ->object ) && method_exists ($ this ->object , $ key )) {
151151 $ relation = $ this ->object ->$ key ()->type ;
152- } elseif (!is_null ($ this ->object ) && method_exists ($ this ->object , Str::studly ($ key ))) {
152+ } elseif (! is_null ($ this ->object ) && method_exists ($ this ->object , Str::studly ($ key ))) {
153153 $ relation = $ this ->object ->{Str::studly ($ key )}()->type ;
154- } elseif (!is_null ($ this ->object ) && method_exists ($ this ->object , lcfirst ($ key ))) {
154+ } elseif (! is_null ($ this ->object ) && method_exists ($ this ->object , lcfirst ($ key ))) {
155155 $ relation = $ this ->object ->{lcfirst ($ key )}()->type ;
156156 } else {
157157 $ relation = 'HasOne ' ;
You can’t perform that action at this time.
0 commit comments