Preview: ContactSubmitRequest.php
Size: 771 B
/home/byroehnu/cnggold.com.ng/app/Http/Requests/Frontend/ContactSubmitRequest.php
<?php
namespace App\Http\Requests\Frontend;
use Illuminate\Foundation\Http\FormRequest;
class ContactSubmitRequest 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, \Illuminate\Contracts\Validation\ValidationRule|array|string>
*/
public function rules(): array
{
return [
'name' => 'required|max:100',
'email' => 'required|email|max:100',
'project_type' => 'required|max:100',
'mobile_number' => 'required|max:20',
'message' => 'required',
];
}
}
Directory Contents
Dirs: 1 × Files: 6