app/Services/ValidationRules.php
/***
     * Returns the validation rules for contact table
     * @return string[]
     */
Returns the validation rules for contact table
@return string[]
Returns the validation rules for contact table @return string []
public static function storeContactRules()
    {
        return [
            "first_name" => "required|string",
            "last_name" => "required|string",
            "type" => "required|string|in:customer,prospect",
            "gender" => "required|string|in:male,female",
            "dob" => "required|date_format:m/d/Y",
            "phone_number" => "required|string",
            "email" => "email|required|unique:customers,email",
            "address" => "required|string",
            "city" => "required|string",
            "pincode" => "required|integer",
            "state" => "required|string",
        ];
    }
public static function storeContactRules ( ) { return [ " first_name " => " required|string " , " last_name " => " required|string " , " type " => " required|string|in:customer,prospect " , " gender " => " required|string|in:male,female " , " dob " => " required|date_format:m/d/Y " , " phone_number " => " required|string " , " email " => " email|required|unique:customers,email " , " address " => " required|string " , " city " => " required|string " , " pincode " => " required|integer " , " state " => " required|string " , ] ; }
Returns the validation rules for contact table
 @return string[]
Returns the validation rules for contact table @return string []
//validation rules for contacts table //            "email" => Rule::unique("customers")->where(function ($query) use ( //                $phoneNumber //            ) { //                return $query->where("phone", $phoneNumber); //            }),