File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -147,11 +147,11 @@ public function getValidationAttributes()
147
147
foreach ($ resource as $ field => $ rules ) {
148
148
if ($ this ->hasRelation ($ key )) {
149
149
$ 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 )) {
151
151
$ 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 ))) {
153
153
$ 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 ))) {
155
155
$ relation = $ this ->object ->{lcfirst ($ key )}()->type ;
156
156
} else {
157
157
$ relation = 'HasOne ' ;
You can’t perform that action at this time.
0 commit comments