Skip to content

Commit 59ce65e

Browse files
committed
fix: editor events TModel
1 parent a4c654d commit 59ce65e

File tree

3 files changed

+21
-0
lines changed

3 files changed

+21
-0
lines changed

src/Concerns/WithCreateAction.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,11 +80,18 @@ protected function createMessages(): array
8080
return [];
8181
}
8282

83+
/**
84+
* @param TModel $model
85+
*/
8386
public function creating(Model $model, array $data): array
8487
{
8588
return $data;
8689
}
8790

91+
/**
92+
* @param TModel $model
93+
* @return TModel
94+
*/
8895
public function created(Model $model, array $data): Model
8996
{
9097
return $model;

src/Concerns/WithEditAction.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,11 +81,18 @@ protected function editMessages(): array
8181
return [];
8282
}
8383

84+
/**
85+
* @param TModel $model
86+
*/
8487
public function updating(Model $model, array $data): array
8588
{
8689
return $data;
8790
}
8891

92+
/**
93+
* @param TModel $model
94+
* @return TModel
95+
*/
8996
public function updated(Model $model, array $data): Model
9097
{
9198
return $model;

src/Concerns/WithRemoveAction.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,11 +83,18 @@ protected function removeMessages(): array
8383
return [];
8484
}
8585

86+
/**
87+
* @param TModel $model
88+
*/
8689
public function deleting(Model $model, array $data): array
8790
{
8891
return $data;
8992
}
9093

94+
/**
95+
* @param TModel $model
96+
* @return TModel
97+
*/
9198
public function deleted(Model $model, array $data): Model
9299
{
93100
return $model;

0 commit comments

Comments
 (0)