2022-07-29 10:38:56 +00:00
|
|
|
<?php
|
|
|
|
|
|
2022-08-05 12:02:16 +00:00
|
|
|
namespace App\Http\Requests\API;
|
2022-07-29 10:38:56 +00:00
|
|
|
|
|
|
|
|
use Illuminate\Foundation\Http\FormRequest;
|
|
|
|
|
|
|
|
|
|
class ContactsRequest extends FormRequest
|
|
|
|
|
{
|
|
|
|
|
/**
|
|
|
|
|
* Determine if the user is authorized to make this request.
|
|
|
|
|
*
|
|
|
|
|
* @return bool
|
|
|
|
|
*/
|
|
|
|
|
public function authorize()
|
|
|
|
|
{
|
2022-08-05 12:02:16 +00:00
|
|
|
return true;
|
2022-07-29 10:38:56 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Get the validation rules that apply to the request.
|
|
|
|
|
*
|
|
|
|
|
* @return array<string, mixed>
|
|
|
|
|
*/
|
|
|
|
|
public function rules()
|
|
|
|
|
{
|
|
|
|
|
return [
|
2022-08-05 07:01:17 +00:00
|
|
|
'address' => 'required',
|
|
|
|
|
'phone' => 'required',
|
|
|
|
|
'email' => 'required'
|
2022-07-29 10:38:56 +00:00
|
|
|
];
|
|
|
|
|
}
|
|
|
|
|
}
|