app/Http/Requests/Reply/CreateRequest.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|unique:replies,name',
            'trigger_keywords' => 'required|array',
            'trigger_type' => 'required|in:equal,contain',
            'replies' => 'required|array',
        ];
    }
public function rules ( ) { return [ 'name' => 'required|unique:replies,name' , 'trigger_keywords' => 'required|array' , 'trigger_type' => 'required|in:equal,contain' , 'replies' => 'required|array' , ] ; }
Get the validation rules that apply to the request.
Get the validation rules that apply to the request .