We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5f5b303 commit 1f0f61dCopy full SHA for 1f0f61d
2 files changed
src/Observers/GroupObserver.php
@@ -3,17 +3,12 @@
3
namespace Yuges\Groupable\Observers;
4
5
use Yuges\Groupable\Models\Group;
6
-use Yuges\Groupable\Config\Config;
7
8
class GroupObserver
9
{
10
public function creating(Group $group): void
11
12
- if ($group->shouldSortWhenCreating()) {
13
- if (is_null($group->order)) {
14
- $group->setHighestOrderNumber();
15
- }
16
+
17
}
18
19
public function saving(Group $group): void
src/Observers/GroupableObserver.php
@@ -8,11 +8,7 @@ class GroupableObserver
public function creating(Groupable $groupable): void
- if ($groupable->shouldSortWhenCreating()) {
- if (is_null($groupable->order)) {
- $groupable->setHighestOrderNumber();
public function saving(Groupable $groupable): void
0 commit comments