app/Http/Requests/ContactRequestValidation.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 [
            'fullname'  => 'required|min:3',
            'email'     => 'required|email',
            'location'  => 'required|min:3',
            'phone'     => 'nullable'
        ];
    }
public function rules ( ) { return [ 'fullname' => 'required|min:3' , 'email' => 'required|email' , 'location' => 'required|min:3' , 'phone' => 'nullable' ] ; }
Get the validation rules that apply to the request.
Get the validation rules that apply to the request .