generated from filamentphp/plugin-skeleton
-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e9f2fa1
commit 4c3afba
Showing
4 changed files
with
61 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<?php | ||
|
||
namespace Visualbuilder\FilamentUserConsent\Infolists\Components; | ||
|
||
use Filament\Infolists\Components\Entry; | ||
|
||
class ConsentAcceptForm extends Entry | ||
{ | ||
protected string $view = 'user-consent::infolists.components.consent-accept-form'; | ||
|
||
public $errorBag = []; | ||
|
||
protected $rules = [ | ||
'name' => 'required|min:6', | ||
'email' => 'required|email', | ||
]; | ||
|
||
public function updated($propertyName) | ||
{ | ||
$this->validateOnly($propertyName); | ||
} | ||
|
||
public function submit() | ||
{ | ||
$validatedData = $this->validate(); | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters