app/Http/Requests/SocialMedia/SocialMediaRequest.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 [
            'phone_number'      =>'required|regex:/[0-9]{10}/',
            'whatsapp_number'   =>'required|regex:/[0-9]{10}/',
            'telegram_number'   =>'required|regex:/[0-9]{10}/',
        ];
    }
public function rules ( ) { return [ 'phone_number' => 'required|regex:/[0-9]{10}/' , 'whatsapp_number' => 'required|regex:/[0-9]{10}/' , 'telegram_number' => 'required|regex:/[0-9]{10}/' , ] ; }
Get the validation rules that apply to the request.
Get the validation rules that apply to the request .