Files
Laravel/mini-crm/app/Http/Requests/StoreClientRequest.php
T

34 lines
692 B
PHP
Raw Normal View History

2026-10-07 16:34:12 +02:00
<?php
namespace App\Http\Requests;
use Illuminate\Contracts\Validation\ValidationRule;
use Illuminate\Foundation\Http\FormRequest;
class StoreClientRequest extends FormRequest
{
/**
* Determine if the user is authorized to make this request.
*/
public function authorize(): bool
{
return true;
}
/**
* Get the validation rules that apply to the request.
*
* @return array<string, ValidationRule|array<mixed>|string>
*/
public function rules(): array
{
return [
//
'name' => 'required|string|max:100',
'email' => 'required|email',
'city' => 'nullable|string|max:100',
];
}
}