feat: add PersonStatus enum and PortalMeRequest form request
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
15
api/app/Enums/PersonStatus.php
Normal file
15
api/app/Enums/PersonStatus.php
Normal file
@@ -0,0 +1,15 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace App\Enums;
|
||||
|
||||
enum PersonStatus: string
|
||||
{
|
||||
case INVITED = 'invited';
|
||||
case APPLIED = 'applied';
|
||||
case PENDING = 'pending';
|
||||
case APPROVED = 'approved';
|
||||
case REJECTED = 'rejected';
|
||||
case NO_SHOW = 'no_show';
|
||||
}
|
||||
23
api/app/Http/Requests/Api/V1/PortalMeRequest.php
Normal file
23
api/app/Http/Requests/Api/V1/PortalMeRequest.php
Normal file
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace App\Http\Requests\Api\V1;
|
||||
|
||||
use Illuminate\Foundation\Http\FormRequest;
|
||||
|
||||
final class PortalMeRequest extends FormRequest
|
||||
{
|
||||
public function authorize(): bool
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
/** @return array<string, mixed> */
|
||||
public function rules(): array
|
||||
{
|
||||
return [
|
||||
'event_id' => ['required', 'ulid'],
|
||||
];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user