Attendize/app/Http/Requests/AddEventRequest.php

36 lines
727 B
PHP
Raw Normal View History

2019-09-16 12:55:29 +00:00
<?php
namespace App\Http\Requests;
use Illuminate\Foundation\Http\FormRequest;
class AddEventRequest 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 [
2020-04-06 14:37:38 +00:00
'name'=>'required|string|min:2|max:255',
'phone'=>'required|numeric|digits_between:8,12',
2019-09-16 12:55:29 +00:00
'email' =>'required|email',
2020-04-06 14:37:38 +00:00
'details' => 'required|string',
'place' => 'required|string'
2019-09-16 12:55:29 +00:00
//
];
}
}