Files
newznab-tmux/app/Http/Requests/ContactFormRequest.php
T
2018-04-05 14:37:44 +02:00

33 lines
614 B
PHP

<?php
namespace App\Http\Requests;
use Illuminate\Foundation\Http\FormRequest;
class ContactFormRequest extends FormRequest
{
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize()
{
return true;
}
/**
* Get the validation rules that apply to the request.
*
* @return array
*/
public function rules()
{
return [
'username' => 'required|max: 255',
'useremail' => 'required|email|max: 255',
'message' => 'required',
];
}
}