2022-03-31 16:45:38 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Http\Requests;
|
|
|
|
|
|
|
|
use Illuminate\Foundation\Http\FormRequest;
|
|
|
|
|
2022-10-24 01:03:43 +01:00
|
|
|
class HomeContactRequest extends FormRequest
|
2022-03-31 16:45:38 +01:00
|
|
|
{
|
|
|
|
/**
|
|
|
|
* Determine if the user is authorized to make this request.
|
|
|
|
*
|
|
|
|
* @return bool
|
|
|
|
*/
|
|
|
|
public function authorize()
|
|
|
|
{
|
2022-10-24 01:03:43 +01:00
|
|
|
return true;
|
2022-03-31 16:45:38 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Get the validation rules that apply to the request.
|
|
|
|
*
|
|
|
|
* @return array
|
|
|
|
*/
|
|
|
|
public function rules()
|
|
|
|
{
|
|
|
|
return [
|
2022-10-24 01:03:43 +01:00
|
|
|
'email' => 'required|email',
|
|
|
|
'msg' => 'required|string',
|
|
|
|
'captcha' => 'required|string'
|
2022-03-31 16:45:38 +01:00
|
|
|
];
|
|
|
|
}
|
|
|
|
}
|