We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 1f1abcb + 1dcba51 commit cbc4f4dCopy full SHA for cbc4f4d
1 file changed
src/Adv/AdvModel.php
@@ -54,6 +54,13 @@ public function configurations()
54
);
55
}
56
57
+ public function restore()
58
+ {
59
+ // added this for fix restore from admin panel, it has given an error about configurations relation.
60
+ $this->setAttribute('deleted_at', null);
61
+ return $this->save();
62
+ }
63
+
64
public function getConfigurations()
65
{
66
return $this->getAttribute('configurations');
0 commit comments