Skip to content

Commit

Permalink
validate user input before saving (#1)
Browse files Browse the repository at this point in the history
validate user input before saving
  • Loading branch information
quintenbuis committed Aug 17, 2022
2 parents b8fb90a + 1da2e67 commit 59e13e6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Pages/Settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ public function mount(): void

public function submit(): void
{
$this->validate();

foreach ($this->data as $key => $data) {
Valuestore::make(
config('filament-settings.path')
Expand Down

0 comments on commit 59e13e6

Please sign in to comment.