File tree Expand file tree Collapse file tree
src/Laravel/src/Fields/Relationships Expand file tree Collapse file tree Original file line number Diff line number Diff line change 44
55namespace MoonShine \Laravel \Fields \Relationships ;
66
7- use Illuminate \Database \Eloquent \Relations \HasOne ;
87use Closure ;
98use Illuminate \Contracts \Database \Eloquent \Builder ;
109use Illuminate \Contracts \Support \Renderable ;
1110use Illuminate \Database \Eloquent \Model ;
11+ use Illuminate \Database \Eloquent \Relations \HasOne ;
1212use Illuminate \Support \Collection ;
1313use MoonShine \Contracts \Core \DependencyInjection \FieldsContract ;
1414use MoonShine \Contracts \UI \ActionButtonContract ;
@@ -279,7 +279,7 @@ protected function resolveValue(): mixed
279279 ? $ this ->toFormattedValue ()
280280 : $ this ->toValue ();
281281
282- if ($ this ->getRelation () instanceof HasOne) {
282+ if ($ this ->getRelation () instanceof HasOne) {
283283 $ this
284284 ->vertical ()
285285 ->creatable (false );
You can’t perform that action at this time.
0 commit comments