Eshop-Laravel/app/Http/Requests/ContactRequest.php

32 lines
538 B
PHP
Raw Permalink Normal View History

2019-10-18 09:25:37 +00:00
<?php
namespace App\Http\Requests;
use Illuminate\Foundation\Http\FormRequest;
class ContactRequest extends FormRequest
{
public function authorize()
{
return true;
}
public function rules()
{
return [
'name' => 'required|min:2',
'last_name' => 'required',
'email' => 'required|email',
'message' => 'required'
];
}
// public function messages(){ //if i want to change the errors mgs!
// return [
//
//
// ];
// }
}