File tree Expand file tree Collapse file tree 2 files changed +2
-11
lines changed Expand file tree Collapse file tree 2 files changed +2
-11
lines changed Original file line number Diff line number Diff line change 33namespace Yuges \Groupable \Observers ;
44
55use Yuges \Groupable \Models \Group ;
6- use Yuges \Groupable \Config \Config ;
76
87class GroupObserver
98{
109 public function creating (Group $ group ): void
1110 {
12- if ($ group ->shouldSortWhenCreating ()) {
13- if (is_null ($ group ->order )) {
14- $ group ->setHighestOrderNumber ();
15- }
16- }
11+
1712 }
1813
1914 public function saving (Group $ group ): void
Original file line number Diff line number Diff line change @@ -8,11 +8,7 @@ class GroupableObserver
88{
99 public function creating (Groupable $ groupable ): void
1010 {
11- if ($ groupable ->shouldSortWhenCreating ()) {
12- if (is_null ($ groupable ->order )) {
13- $ groupable ->setHighestOrderNumber ();
14- }
15- }
11+
1612 }
1713
1814 public function saving (Groupable $ groupable ): void
You can’t perform that action at this time.
0 commit comments