app/Http/Requests/OfferRequest.php
/**
     * Get the validation rules that apply to the request.
     *
     * @return array
     */
Get the validation rules that apply to the request.
@return array
Get the validation rules that apply to the request . @return array
public function rules()
    {
        return [
            'name' =>'required|max:10',
            'title' =>'required|max:20',
            'tel' =>'required|max:13',
            'email' =>'required|email',
            'day' =>'required|day',
            'body' =>'required|max:1000'
        ];
    }
public function rules ( ) { return [ 'name' => 'required|max:10' , 'title' => 'required|max:20' , 'tel' => 'required|max:13' , 'email' => 'required|email' , 'day' => 'required|day' , 'body' => 'required|max:1000' ] ; }
Get the validation rules that apply to the request.
Get the validation rules that apply to the request .