Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Добавить событиe для Field afterSave #37

Closed
alexvenga opened this issue Oct 31, 2022 · 1 comment
Closed

Добавить событиe для Field afterSave #37

alexvenga opened this issue Oct 31, 2022 · 1 comment

Comments

@alexvenga
Copy link
Contributor

alexvenga commented Oct 31, 2022

Добавить возможность в Leeto\MoonShine\Fields\Field метод afterSave(), наподобие:

public function afterSave(Model $item): Model
{
// .......
return $item;
}

где можно было бы выполнить действия с введенными данными или моделью.
lee-to added a commit that referenced this issue Nov 1, 2022
@lee-to
Copy link
Collaborator

lee-to commented Nov 1, 2022

public function beforeSave(Model $item): void
{

}

public function afterSave(Model $item): void
{

}

@lee-to lee-to closed this as completed Nov 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants