19 lines
473 B
PHP
19 lines
473 B
PHP
<?php
|
|
|
|
namespace App\Modules\Client\Requests;
|
|
|
|
use Illuminate\Foundation\Http\FormRequest;
|
|
|
|
class CreateClientRequest extends FormRequest
|
|
{
|
|
public function authorize(): bool { return true; }
|
|
|
|
public function rules(): array
|
|
{
|
|
return [
|
|
'client_number' => ['required', 'string', 'max:50', 'unique:clients,client_number'],
|
|
'name' => ['required', 'string', 'max:255'],
|
|
'notes' => ['nullable', 'array'],
|
|
];
|
|
}
|
|
}
|