mirror of
https://github.com/solidtime-io/solidtime.git
synced 2026-06-15 05:22:44 +01:00
33 lines
699 B
PHP
33 lines
699 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\Http\Requests\V1\User;
|
|
|
|
use App\Http\Requests\V1\BaseFormRequest;
|
|
use Illuminate\Contracts\Validation\ValidationRule;
|
|
|
|
class UserUpdateCurrentOrganizationRequest extends BaseFormRequest
|
|
{
|
|
/**
|
|
* Get the validation rules that apply to the request.
|
|
*
|
|
* @return array<string, array<string|ValidationRule>>
|
|
*/
|
|
public function rules(): array
|
|
{
|
|
return [
|
|
'organization_id' => [
|
|
'required',
|
|
'string',
|
|
'uuid',
|
|
],
|
|
];
|
|
}
|
|
|
|
public function getOrganizationId(): string
|
|
{
|
|
return (string) $this->input('organization_id');
|
|
}
|
|
}
|