init
This commit is contained in:
52 files changed
+5299
No files matched your search
@@ -0,0 +1,30 @@
|
||||
<?php
|
||||
|
||||
namespace MeghdadFadaee\NovaFormCard\Tests\Fixtures;
|
||||
|
||||
use Laravel\Nova\Fields\Text;
|
||||
use Laravel\Nova\Http\Requests\NovaRequest;
|
||||
use MeghdadFadaee\NovaFormCard\FormCard;
|
||||
use MeghdadFadaee\NovaFormCard\FormFields;
|
||||
|
||||
class SuccessfulCard extends FormCard
|
||||
{
|
||||
/**
|
||||
* @var array<string, mixed>
|
||||
*/
|
||||
public static array $handled = [];
|
||||
|
||||
public function fields(NovaRequest $request): array
|
||||
{
|
||||
return [
|
||||
Text::make('Email')->rules('required', 'email'),
|
||||
];
|
||||
}
|
||||
|
||||
public function handle(FormFields $fields, NovaRequest $request): mixed
|
||||
{
|
||||
self::$handled = $fields->all();
|
||||
|
||||
return static::message('Invitation sent.');
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user