Akaunting/app/Http/Requests/Common/ContactPerson.php

25 lines
517 B
PHP
Raw Normal View History

2023-10-03 08:06:08 +00:00
<?php
namespace App\Http\Requests\Common;
use App\Abstracts\Http\FormRequest;
class ContactPerson extends FormRequest
{
/**
* Get the validation rules that apply to the request.
*
* @return array
*/
public function rules()
{
return [
'type' => 'required|string',
'contact_id' => 'required|integer',
'name' => 'nullable|string',
'email' => 'nullable|email:rfc,dns',
'phone' => 'nullable|string',
];
}
}